PaulHax / spin-controls

Arcball style controls for three.js Object3Ds and Cameras. Featuring pointer to trackball accuracy and unlimited rotation.
https://paulhax.github.io/spin-controls/
MIT License
78 stars 12 forks source link

Rotate scene about camera Z with 2 fingers #5

Closed raffdp closed 3 years ago

raffdp commented 3 years ago

Would it be possible to use a two finger twist gesture to rotate along the camera view z, like the "pinch + rotate" example here http://alloyteam.github.io/AlloyFinger/. So in a plane parallel to the screen plane, and the rotate in x,y about z only.

raffdp commented 3 years ago

Actually, the center of rotation would probably be the center between your two fingers, or the last rotation center point if no point was hit on an object between your two fingers, or if either finger hit a point on the object, and the first finger to hit would be the rotation center.

Like a simple compass for drawing a circle.

PaulHax commented 3 years ago

I dig it.

Keep this up, we get the full Google Maps touch action going.

raffdp commented 3 years ago

Perfect!