Skip to content

How can I prevent a RigidBody from passing through another RigidBody? #474

Closed Answered by wiledal
arkk200 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! This can be a bit hard to achieve. Especially if the cup has an arbitrary shape (convexMesh), as it then does not have calculated "thickness". One thing you can try is to turn on ccd on the cup, or dice, or both.

Other people have reported that changing the setting for predicitionDistance to something like 0.09 (depending on the size of your scene), might help.

<Physics predictionDistance={0.09}>...</Physics>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arkk200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants