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 have a <group /> that needs to be "anchored" to the hand's position, but be absolutely rotated in the world, kind of like a compass. The red needle must always point "north," regardless of the hand's rotation.
My current solution is to combine setState with useFrame:
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a
<group />
that needs to be "anchored" to the hand's position, but be absolutely rotated in the world, kind of like a compass. The red needle must always point "north," regardless of the hand's rotation.My current solution is to combine
setState
withuseFrame
:However, the docs explicitly warn against this because it causes a re-render. Is there another way to go about this?
Beta Was this translation helpful? Give feedback.
All reactions