You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to rotate a body (compound body of two spheres) in a useFrame hook. I found someone having a similar issue here: #114 and from the looks of it the answer seems to have helped them. I'm doing the exact same thing, but somehow my body won't rotate past -Math.PI / 2 or Math.PI / 2. It will just be stuck at those bounds.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
👋
I'm trying to rotate a body (compound body of two spheres) in a useFrame hook. I found someone having a similar issue here: #114 and from the looks of it the answer seems to have helped them. I'm doing the exact same thing, but somehow my body won't rotate past
-Math.PI / 2
orMath.PI / 2
. It will just be stuck at those bounds.Some (I think) relevant code snippets:
Body definition
useEffect
anduseFrame
I would like to make my body constantly rotate as I hover over it with the mouse. How can I do that without running into these bounds?
Beta Was this translation helpful? Give feedback.
All reactions