Pointentity VS DeltaYAW

Blitz3D Forums/Blitz3D Programming/Pointentity VS DeltaYAW

cash(Posted 2007) [#1]
Okay pointentity is pretty effective in some situatiuons but tends to leave things at awkward angles when heitht etc vary. So I try deltayaw but it never works out right.

What I want is for something to point at an object but not relative to the objects YAW angle. So if an enemy points at the player it is at the entire "Player" regardless of the actual angle the player is at.

I tried having a gun point at a player and it worked but when the player rotated so did the gun. I just want the gun to point at the player irrespective of angles etc.

I am sure its simple.


GfK(Posted 2007) [#2]
You should create a pivot, place it in the centre of the player, parent it to the player, and point the camera at the pivot.

Wouldn't use DeltaYaw for this.