How do you turn an object towards another

Blitz3D Forums/Blitz3D Programming/How do you turn an object towards another

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.

In the code archive I've posted a 'smart turn' function, it may also be helpful.

What it does, it gently turns an entity toward another one, using the shortest path - that is, it turns the entity to left or right so that the angle to be covered is the smallest.

You find it here:
http://www.blitzbasic.com/codearcs/codearcs.php?code=360

Sergio.