Closed ajitStephen closed 1 week ago
If you look at the original Three version you see it has a mouseUp event that you should be able to listen to as well. https://threejs.org/docs/#examples/en/controls/TransformControls
You could also probably use the R3F onPointerUp={(e) => console.log('up')}
https://docs.pmnd.rs/react-three-fiber/api/events
Then I'd look into the newer Pivot Controls which have way more options and seems to be the way Paul and others are leaning for more futureproof controls.
https://github.com/pmndrs/drei#pivotcontrols
it actually has onDragEnd
Thank you for contributing! We’re marking this issue as stale as a gentle reminder to revisit it and give it the attention it needs to move forward.
Any activity, like adding an update or comment, will automatically remove the stale label so it stays on our radar.
Feel free to reach out on Discord if you need support or feedback from the community. This issue will close automatically soon if there’s no further activity. Thank you for understanding and for being part of the project!
We’re closing this issue to keep our project manageable and make room for other active work, but we truly appreciate your effort and contribution.
If you’d like to continue working on this, please feel free to re-open it or reach out on Discord — our community is always ready to support you. Thanks again for helping us stay organized and for understanding our approach!
Step 1: I want to activate TransformControls on selection of object, perhaps onClick on mesh. [DONE] Step 2: I want to use TransformControls to drag the #D Object in scene to the wanted place. [DONE]
Step 3: Once
drag
is finished i want to deactivate TransformControls, and fetch new position of 3D Object moved [I don't know how ?]I tried to do this with ThreeJS example, it worked: