Replies: 1 comment 2 replies
-
Btw, if anyone knows a better way of deciding the value of the dice. please tell me :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to make a yahtzee game in RF3 using use-cannon to simulate dice rolls, I want to use the dice his rotation to decide which value it is. The problem is that the dice keeps jittering if i set allowSleep to false. But if i set it to true it wont wake up when i reroll the dice...
Is there a good way of waking up the dice without colliding it with another object. I tried to change the allowsleep boolean with the api (api.allowSleep.set(bool)) but it didn't do the trick for me
here is a small codeSandbox for one dice: https://codesandbox.io/s/proud-breeze-luwtb?file=/src/App.js
Beta Was this translation helpful? Give feedback.
All reactions