Constructs new controls.
A position.
A quaternion.
A target.
The settings.
A DOM element. Acts as the primary event target.
Indicates whether the controls are enabled.
Event listeners will be registered or unregistered depending on this flag.
The quaternion.
Frees internal resources.
Returns the projected view direction.
The projected direction will be reached if there are no further rotation adjustments. If damping is disabled, the vector will be equal to the direction returned by getViewDirection.
A vector to store the direction in.
The normalized view direction.
Looks at the given point.
The X-coordinate, or a point.
Optional
y: numberThe Y-coordinate.
Optional
z: numberThe Z-coordinate.
This instance.
Locks or unlocks the pointer.
Whether the pointer should be locked.
Enables or disables the rotation mode.
Whether the rotation mode should be activated.
Synchronizes the internal state with external changes.
The previous position.
The previous quaternion.
The previous target.
Updates this object.
The current time in milliseconds.
3D rotation controls.
This class emits events of type EVENT_UPDATE when the quaternion is changed.