Doc > Nodes > EVENT > FirstPersonControls

Doc > Nodes > EVENT > FirstPersonControls

Creates a PointerLockControls

Description

This allows you to create a First-Person navigation, using the WASD keys.

Parameters

Name Type Description
lock button click to lock controls
minPolarAngle float min rotation angle
maxPolarAngle float max rotation angle
speed float travel speed
collideWithGeo boolean detects collisions
collidingGeo node_path geometry to collide with
recomputeCollidingGeo button recompute colliding geo
capsuleHeightRange vector2 capsule height range
capsuleRadius float capsule radius