Page 1 of 1

Collide in all direction

PostPosted: Tue May 24, 2011 10:07 pm
by Clokio
Example I have a top view game, and there is a rock in the way. So I need it to collide (repel the player) in all direction opposite.


Thanks

Re: Collide in all direction

PostPosted: Sat May 28, 2011 11:49 am
by savvy
use physical response, its a function made for colliding :D
set the 3rd value to 0 instead of 1.0 and it will disallow response from the object, larger than 0 creates a bounce effect.
1.0 makes a bounce at an identical speed at which the object collided.

savvy