MouseCameraTrackballFirstPersonManipulator
Introduction
First-person style camera control: mouse movement yaws and pitches the camera in place, optionally using pointer lock.
Methods
getNumAnimationSteps
Gets the number of animation steps a camera move is spread over.
getSensitivity
Gets the factor applied to the mouse movement.
getUsePointerLock
Gets whether the pointer is locked on button down.
moveCamera
Yaws and pitches the camera, spread over numAnimationSteps animation frames.
| Argument | Type | Required | Description |
|---|---|---|---|
yaw | Yes | yaw in degrees | |
pitch | Yes | pitch in degrees |
setNumAnimationSteps
Sets the number of animation steps a camera move is spread over.
| Argument | Type | Required | Description |
|---|---|---|---|
numAnimationSteps | Yes |
setSensitivity
Sets the factor applied to the mouse movement.
| Argument | Type | Required | Description |
|---|---|---|---|
sensitivity | Yes |
setUsePointerLock
Sets whether the pointer is locked on button down.
| Argument | Type | Required | Description |
|---|---|---|---|
usePointerLock | Yes |