TurnToEntity

Blitz3D Forums/Blitz3D Programming/TurnToEntity

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

As Rob says just use undocumented DeltaYaw and DeltaPitch - much cleaner. I may have mixed my signs up here.


Function PointEnitity (entity1, entity2, speed# )

 pitch# = -deltapitch(entity1,entity2)
 yaw# = -deltayaw (entity1,entity2)
 turnentity entity1 , pitch * speed , yaw * speed#,0

end function