Turning to Face

Blitz3D Forums/Blitz3D Beginners Area/Turning to Face

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

AlignToVector

Check out the rate# parameter.

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.

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?