Turning to Face

Blitz3D Forums/Blitz3D Beginners Area/Turning to Face

Eric(Posted 2004) [#1]
what is a good algorithm to turn one entity to face another?
I might add that pointentity is not what I mean. I need to to slowly turn to face the other object.

Regards,
Eric


WolRon(Posted 2004) [#2]
AlignToVector

Check out the rate# parameter.


Jeremy Alessi(Posted 2004) [#3]
Use DeltaYaw(src_entity, dest_entity) and DeltaPitch(src_entity, dest_entity) ... they tell you how much rotation is needed for the src_entity to face the dest_entity.


Black Hydra(Posted 2004) [#4]
I tried using DeltaYaw in my code for something I was doing and it crashed the IDE when I tried to compile it. I also couldn't access the help file on it. Is this something new?