- Home /
Object thrusted violently in opposite direction on collision
I am making a game like Subway Surfers and am setting velocity to move the player forward for an even forward motion, but using forces to move the player left and right. Upon collision with an oncoming "train", the player violently shoots in the opposite direction of impact, which is odd and undesired. Why is this? A video of this is here.
The train object:
The player object:
Answer by Cornelis-de-Jager · Mar 22, 2018 at 11:46 PM
Well, the thing is that it is not weird or unnatural at all. It is just physics. If you want to make it so that it doesn't bounce Add a Physics material to the Collider that has a bounciness of 0. Play around with the physics material and try making it more like a hackysack than a solid ball.
Your answer
Follow this Question
Related Questions
Same Collision Rebound Force on Cars 0 Answers
Manually Apply Cars Collision Response Force 0 Answers
Collider question 0 Answers
How do I move this rigidbody? 1 Answer