Constructs new controls.
A position.
A quaternion.
A DOM element. Serves as the primary event target.
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.
Copies the given controls.
A controls instance.
This instance.
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.
Synchronizes the internal state with external changes.
Updates this object.
The current time in milliseconds.
Spatial controls for 3D translation and rotation.
This class emits events of type EVENT_UPDATE when the position or quaternion is changed.