|
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? |
Answered by
wiledal
Jul 27, 2023
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> |
0 replies
Answer selected by
arkk200
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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
ccdon the cup, or dice, or both.Other people have reported that changing the setting for
predicitionDistanceto something like0.09(depending on the size of your scene), might help.