Unity Perfect Bounce
I am working on a project that basically requires a ball to always bounce up to the same height it dropped from. I have made physics materials in Unity, tried setting the friction to 0 and the "Bounciness" to 1, and place the materials on both the objects, on 1 of each object etc. To closest I can get to a perfect bounce is by using an arbitrary number like 0.97185 which only works sometimes, the result is the ball always continuously gains velocity or loses velocity never maintains the same velocity on the bounce.
Now to get it to kinda work I have gone through and added a script to manually seperate the objects, calculate what the velocity would have been when it collided and then inverted that, but I was wondering if there is a way to achieve this with just the physics materials themselves.
Your answer
Follow this Question
Related Questions
Best ground 2D ground check strategy? How to detect if a object is touching the top of a layer? 0 Answers
2D Physics and Pixel Perfect Movement? 2 Answers
negating a force 2D 0 Answers
WHY IK affects Rigidbody???? 0 Answers
Transform.position in 2d game or better way to move player working with colliders. 1 Answer