PointerLockControls class

The implementation of this class is based on the Pointer Lock API. PointerLockControls is a perfect choice for first person 3D games.

Mixed-in types
  • EventDispatcher

Constructors

PointerLockControls.new(Camera camera, GlobalKey<PeripheralsState> listenableKey)
camera - The camera to be controlled.

Properties

camera ↔ Camera
getter/setter pair
direction → Vector3
final
domElement → PeripheralsState
no setter
getObject → Camera
no setter
hashCode int
The hash code for this object.
no setterinherited
isLocked bool
getter/setter pair
listenableKey GlobalKey<PeripheralsState>
getter/setter pair
maxPolarAngle double
getter/setter pair
minPolarAngle double
getter/setter pair
pointerSpeed double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope PointerLockControls
getter/setter pair

Methods

addEventListener(String type, Function listener) → void
type - The type of event to listen to.
inherited
clearListeners() → void
Remove all Listeners.
inherited
connect() → void
disconnect() → void
dispatchEvent(Event event) → void
event - The event that gets fired.
inherited
dispose() → void
override
getDirection(Vector3 v) → Vector3
hasEventListener(String type, Function listener) bool
type - The type of event to listen to.
inherited
lock() → void
moveForward(dynamic distance) → void
moveRight(dynamic distance) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onMouseMove(dynamic event) → void
onPointerlockChange() → void
onPointerlockError() → void
removeEventListener(String type, Function listener) → void
type - The type of the listener that gets removed.
inherited
toString() String
A string representation of this object.
inherited
unlock() → void

Operators

operator ==(Object other) bool
The equality operator.
inherited