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

2+ fingers roll around camera forward direction #7

Closed PaulHax closed 3 years ago

PaulHax commented 3 years ago

For touchscreen control to feel right, need to rotate the camera about its Z axis when 2 or more fingers are down.

Removed the CameraSpinControls::distanceToPivot property. The camera offset from pivot/target is set by the translation from the origin to the camera on CameraSpinControls construction.