OptionalautoRun update() from Ticker.shared every frame
OptionalenabledWhether look input and movement apply
OptionalkeyboardRead WASD or arrow keys, Space and Shift from window for movement; set false to move only
through move
OptionallookLook sensitivity in radians per pixel
OptionalmaxPitch clamp in radians, keeping the view short of straight up / down
OptionalmoveMovement speed in world units per second
OptionalpitchInitial pitch in radians, clamped to ±maxPitch
OptionalpointerRequest pointer lock on the canvas when the View is pressed; FPSCamera#pointerLock has the details
OptionalpositionInitial world position; the camera's current position when omitted
OptionalpreventKeep the browser's context menu from opening over the View; FPSCamera#preventContextMenu covers where it still opens
The view whose camera the controller drives and whose pointer events it reads
OptionalyawInitial yaw in radians
Constructor options for FPSCamera
Every field but
viewhas a default. Every option butpositionis also a property on the instance; movecamera.positionfor that.Example