Class: Trackball

SQR.Trackball()

new Trackball()

Trackball controls. Usage:

Source:
To Do:
  • add destroy method to clear listeners
Example
var trackball = new SQR.Trackball();
var t = new SQR.Transform();
t.useQuaternion = true;
// then, inside render function
t.quaternion.copyFrom(trackball.rotation);