PDA

View Full Version : How to move an object without landing on top of the object?


jakeonthelake
07-08-2011, 10:13 PM
I am having trouble figuring out how to move an object to a specific target without it landing on the target...

arty-fishL
07-09-2011, 04:11 AM
I would use proximity or collision detection to find out how close it is, then move it away.

TauTrumpsPi
07-09-2011, 10:18 AM
Or something like this:

(object) move toward (other object) distance = (distance to other object - objects width) - other objects width