Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Physics, Bounce, Stick.

Discussion in 'Editor & General Support' started by tclancey, Jul 27, 2020.

  1. tclancey

    tclancey

    Joined:
    May 19, 2017
    Posts:
    143
    While trying to learn some stuff I thought I'd put together a simple pool table. Table bed, 4 cushions and a ball. That's as far as I've got because I've been trying to get the bounce settings working for hours.

    No combination I can find of collider and rigid and physics material will stop one collider sticking to another. In this case the sphere collider sticks to the cushion colliders. At that point friction appears to be ignored and the ball doesn't want to stop, until it decides to stick to one of the other perpendicular cushions at a corner. At that point the ball is basically welded to the cushions.

    Could someone please let me know what settings I need for this to work? I'm a little confused as I've been playing about with certain other physics sandboxes and haven't noticed this. Is it something to do with the ball's rotation? Does it collide and try to continue to roll into the collider? If that's the problem what's the way around? And if I'm using solid surfaces why would that happen?

    This is 2020, I have no idea if this is an introduced problem, I doubt it.

    Thanks.
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,947
    What are the settings for the rigidbodies and colliders of the balls/cushions? Which rigidbodies are kinematic? What collision detection mode are you using for each object? Discrete? Continuous?

    How are you moving the ball? Are you applying forces? Setting velocities? Moving the transform.position?
     
  3. tclancey

    tclancey

    Joined:
    May 19, 2017
    Posts:
    143
    Tried absolutely everything. Then stumbled on the Physics setting, Bounce Threshold. I can't help feeling this should be a little more prominent. Anyway, set to 0 and I no longer have sticky balls.

    Thanks.