Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Infinite motion and bounciness inside a closed room.

Discussion in 'Physics' started by ashishchandy, Aug 7, 2018.

  1. ashishchandy

    ashishchandy

    Joined:
    Jan 18, 2016
    Posts:
    6
    I am trying to create a 3D world which contains objects(sphere collider) in constant motion inside an enclosed room (made of walls of box colliders).

    I need the objects to bounce off the walls and off each other infinitely.

    I apply a force at the Start() of each object. The "Use Gravity" is set at false for all objects and walls. The walls are "Is Kinematic".
    There is a physics material for objects and walls where friction is 0 and bounciness is 1.

    The problem is that the objects strike the wall and don't bounce at all, rather they slide along the wall and stop.

    Kindly help.

    Object.png Screen Shot 2018-08-07 at 1.59.15 PM.png Screen Shot 2018-08-07 at 1.59.23 PM.png Wall.png
     
  2. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    1,433
    Configure "Bounce Threshold" to zero in the Physics Manager (Edit > Project Settings > Physics)

    upload_2018-8-7_11-41-33.png