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 think the best way for a react-spring integration would be a decoupling between r3f/flex and three where
group.position.copy(position)
is set. If instead of setting the position directly, the Box-Element can pass a callback that is saved to the boxRefs, which can still just set the position or use a spring to change the position or execute any other function.
This would enable much more control over when and why an element is repositioned while still persisting the current functionality.
I would love to hear your thoughts, and I would also offer to implement this as a PR and make an example 😃
Activity
promontis commentedon Oct 3, 2020
I would also love to see some examples 🤗
bbohlender commentedon Aug 19, 2021
I think the best way for a react-spring integration would be a decoupling between r3f/flex and three where
is set. If instead of setting the position directly, the Box-Element can pass a callback that is saved to the boxRefs, which can still just set the position or use a spring to change the position or execute any other function.
This would enable much more control over when and why an element is repositioned while still persisting the current functionality.
I would love to hear your thoughts, and I would also offer to implement this as a PR and make an example 😃