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.
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.