- Home /
ball's collider sometimes catches an edge and bounces. when ball rolls over two aligned platforms
when my ball rolls over two aligned platforms (snapped precisely next to each other), the ball's collider sometimes catches an edge and bounces. Ive tried setting 'Default Contact Offset' from 0.01 to 0.0001, 0.00001, still no use . please help me with this problem. i am searching for answers from last few days nothing worked
Answer by I5 · Oct 18, 2020 at 07:25 AM
If the platforms are rectangular, you may be able to add a (or resize an existing) box collider to one of the platforms, and resize and reposition the box collider to cover both platforms. If both the platforms already have a box collider (that's not a trigger), you can instead add a plane (or really thin cube) just over the top of both platforms. Remember to remove or disable the renders if adding a new cube or plane. - something also came to mind...If your platforms aren't using static colliders and/or rigidbody on the platforms isn't kinematic, one of the platforms may actually be moving, but I'm guessing that both platforms have static colliders already. Next thing to check would be to ensure they're both using the same physics material.
Thank you, no my platforms are non rectangular (cylinder) and it has rb is kinematic and using mesh collider with convex on(i dont think i can resize or edit collider) . and i didnt used any physics materials to both platforms and ball
have you tried making one platform the child of the other and then have one kinematic rigiidbody for both platforms?