PointerLockControls
PointerLockControls is a perfect choice for first person 3D games. The implementation of this class is based on the Pointer Lock API.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Anyclass Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Dispose of the controls.
Dispose of the controls.
Attributes
Returns the look direction of the camera.
Returns the look direction of the camera.
Value parameters
- v
-
- The target vector that is used to store the method's result.
Attributes
- Returns
-
The normalized direction vector.
Activates the pointer lock.
Activates the pointer lock.
Value parameters
- unadjustedMovement
-
- Disables OS-level adjustment for mouse acceleration, and accesses raw mouse input instead. Setting it to true will disable mouse acceleration.
Attributes
Moves the camera forward parallel to the xz-plane. Assumes camera.up is y-up.
Moves the camera forward parallel to the xz-plane. Assumes camera.up is y-up.
Value parameters
- distance
-
- The signed distance.
Attributes
Moves the camera sidewards parallel to the xz-plane.
Moves the camera sidewards parallel to the xz-plane.
Value parameters
- distance
-
- The signed distance.
Attributes
Exits the pointer lock.
Exits the pointer lock.
Attributes
Inherited methods
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object
Concrete fields
Whether the controls are locked or not.
Whether the controls are locked or not.
Attributes
Camera pitch, upper limit. Range is '[0, Math.PI]' in radians.
Camera pitch, upper limit. Range is '[0, Math.PI]' in radians.
Attributes
Camera pitch, lower limit. Range is '[0, Math.PI]' in radians.
Camera pitch, lower limit. Range is '[0, Math.PI]' in radians.
Attributes
Multiplier for how much the pointer movement influences the camera rotation.
Multiplier for how much the pointer movement influences the camera rotation.