- Home /
Does MoveTowards accept Physic Material?
I want to move a gameobject by MoveTowards and make it bounce by Physic Material when it collides. I know about doing it by Rigidbody successfully, but I don't want to use it.
Answer by chillersanim · Nov 30, 2016 at 09:44 AM
The bounce is done by the rigidbody when a colission is detected.
If you translate a game object without using the rigidbody, the colission will not be detected as the rigidbody doesn't know about the translation.
As such, no bouncyness will be applied.
Short answer: You have to use the rigidbody if you want to use the built in bouncyness.
Otherwise you'll have to implement the bouncyness yourself.
You miss a point that makes the question needed to answer. The point is I have Rigidbody added to both gameobjects, collisions are detected. However I don't see bounce detected.
If you translate the object, without using force, then there is no force that can be deflected.
Bounce only happens when force is in play, so unless you move your object with force ins$$anonymous$$d of translation, you won't get any bounces.
Edit: I assumed that you used translation, if that's not the case, please correct me :)