How to achieve SceneViewer like rotation controls based on drag? #233
lokiiarora
started this conversation in
General
Replies: 1 comment 2 replies
-
Hi, Nice try !!! |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,
Great work on the project 🎉🎉🎉
I wanted to achieve Sceneviewer-like rotation controls based on drag?
Here's what I have done:
TransformableNode
which can listen to drag gesturesBaseTransformationController
that takes theDragGesture
and transforms that into rotations on the provided node.Here's the code I have written to achieve that:
The desired result: https://drive.google.com/file/d/1QoXgrF7ev5RAAvdvTo3fCkPgUe393YvK/view?usp=sharing
The result: https://drive.google.com/file/d/1Qk-mPuI1Jl1a8xuterHTlBfakgMAzzB0/view?usp=sharing
Any inputs on how I can achieve a desired effect would be helpful?
Beta Was this translation helpful? Give feedback.
All reactions