Search Unity

Ball bounce gets higher and higher

Discussion in 'Getting Started' started by hiddy, Jun 20, 2017.

  1. hiddy

    hiddy

    Joined:
    Jun 20, 2017
    Posts:
    1
    Hello!

    I'm new with Unity and stuck on a simple problem:

    1. Create a plane
    2. Create a sphere
    3. Add rigidbody to the sphere
    4. Create a new physic material
    5. Set "bounciness" = "1" and "Bounce Combine" = "Maximum" to the material
    5. Apply the material to the ball
    6. Play

    Every where is written that ball should bounce at the same height but for me it bounces higher and higher.
    Where I'm wrong?
     
  2. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    You aren't wrong. Unity physics is wrong. Unity does a bunch of optimizations to speed up physics calculations, and one of them is to ignore conservation of energy and conservation of momentum.

    If you need conservation, you'll have to implement it yourself.
     
    reevthechameleon and Ryiah like this.
  3. Deleted User

    Deleted User

    Guest

    Whatever the settings, the ball will bounce higher and higher, whatever the doc says. It's probably a problem wil the engine itself.

    If you want the bounciness to go from higher to lower, as it should be, try the settings below and act on "Bounciness" until you get the result you want:

    Capture.JPG

    By the way, you must also add the bounce physics material to the objects on which your ball will bounce. :)
     
    Last edited by a moderator: Jun 22, 2017