Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Getting objects to "settle down"

Discussion in 'Physics' started by dmennenoh, May 3, 2019.

  1. dmennenoh

    dmennenoh

    Joined:
    Jul 1, 2015
    Posts:
    379
    I am filling a space with rigid body objects which have sphere colliders attached. Problem is that some areas are always moving around - some spheres just continue to move long after they have been instantiated. Looking for a way to make them settle better.
     
  2. Hyblademin

    Hyblademin

    Joined:
    Oct 14, 2013
    Posts:
    725
    Are you adding bodies to a region with a lot of space for the objects to move around in? Or is it more like filling a container?

    Is the motion you're describing more like sliding around forever, like a rolling ball with no friction, or is it more like vibration/jitter?

    If you haven't already you could try increasing the sleep threshold, bounce threshold, or solver iterations in the physics settings to see how it affects the behavior.