Skip to content

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.

ArgumentTypeRequiredDescription
yawYesyaw in degrees
pitchYespitch in degrees

setNumAnimationSteps ​

Sets the number of animation steps a camera move is spread over.

ArgumentTypeRequiredDescription
numAnimationStepsYes

setSensitivity ​

Sets the factor applied to the mouse movement.

ArgumentTypeRequiredDescription
sensitivityYes

setUsePointerLock ​

Sets whether the pointer is locked on button down.

ArgumentTypeRequiredDescription
usePointerLockYes