- Home /
Question by
Al-ras · May 16, 2013 at 05:49 PM ·
collisionaipathfinding
How to know how far one object are from the corners of another object.
Hi guys,
i'll try to explain that. i'm trying to make an ai script. Now, i need to know if the object moving is near to the left or right corner of the collided object . This let him choose wich direction is faster to avoid the object and continue with his travel... At the moment, the ai object choose randomly left or right, but this is not the way... of course.
Any idea?, if this really can be done.
Thanx
Comment
What's the shape of the collider? or do you intend to make this general purpose for any shape?