- Home /
Question by
Dinotstudio · Jan 14, 2016 at 01:12 PM ·
2dcollisionbounce
How to bounce an Object after collision2D
Hello,
I tried to get the physics of Zelda 3.
I have two GameObject : - Player - Ennemy
When my Player enter in collision with the Ennemy i you to bounce the player in the opposite of direction.
How can i do this ?
I try :
rb.AddForce(new Vector2(1,1) * 50, ForceMode2D.Impulse);
But it does not work
I change Impule by Force and my char move by teleportation. I just want a "smooth" moving.
Comment