-
I am currently developing a feature where a dice rolls inside a cup when the cup is shaken or flipped. However, I am facing an issue where the dice sometimes passes through the sides of the cup instead of staying inside. How can I solve this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 Other people have reported that changing the setting for <Physics predictionDistance={0.09}>...</Physics> |
Beta Was this translation helpful? Give feedback.
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 like0.09
(depending on the size of your scene), might help.