- Home /
2D ball same bounce height on objects as on the ground
Hey I want to make a ball that bounces off the ground and objects always the same height by it self(lets say 4 times ball height) I was trying to do this for several hours but i cant find the right answer.
when my ball bounces off the ground its Ok but when i jump on a object it does not jump 4*ball height anymore, it jumps the same height that it jumped before
how do I make it jump higher on objects?
Answer by wibble82 · Mar 11, 2014 at 11:32 AM
To be certain, you'll need to give more details. Key questions:
What type of physics are you using - is it unity 3d bodies, 2d bodies or your own system?
What physics materials do your rigid bodies have assigned? And what settings do the physics materials have.
Are the rigid bodies all static/kinetic, or are the objects in question dynamic, but the ground is static?
I suspect that your ground has a physics material that has a higher restituion (bouncyness) setting than your objects. Restitution is a combination of the materials of both objects in the collision, so different physics materials on the ground and object would result in different reactions.
Answer by AGirdeux · Mar 11, 2014 at 01:07 PM
Im using 2D physics
The ball: Circle collider 2D - material(friction 0, bounciness 1) rgidbody2D - mass 1, drag 0, gravity 1
The ground & objects(walls boxes and stuff) box collider 2d (no physics material, no rigidbody)
Everything is static except the ball
Your answer
Follow this Question
Related Questions
Rigidbody jump adds bounce energy to second jump 1 Answer
How to make ball bounce off screen boundaries? 1 Answer
Platform Bounce Physics (like Flabby Physics) 0 Answers
Bounce when hitting wall 2 Answers
how do i make pinball ? 1 Answer