Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. We're looking for your feedback on the platforms you use and how you use them. Let us know!
    Dismiss Notice
  4. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  6. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  7. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  8. Want to see the most recent patch releases? Take a peek at the patch release page.
    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:
    5
    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,143
    Configure "Bounce Threshold" to zero in the Physics Manager (Edit > Project Settings > Physics)

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