mikolalysenko / orbit-camera

Orbit camera for 3D scenes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use delta XY for rotate()

edankwan opened this issue · comments

For the rotation, is it more convenient to pass the the delta X and delta Y the to rotate()?

At the moment we need to pass the fromXY and toXY values to the rotate() and convert them to quaternions individually. During the conversation, these lines https://github.com/mikolalysenko/orbit-camera/blob/master/orbit.js#L62-L65 will clamped the value if I want to multiply a scalar value for a higher rotation speed.