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
colliderObject node_path collider object
lock button click to lock controls
unlock button click to unlock controls
capsuleRadius float collision Capsule Radius
capsuleHeight float collision Capsule Height
physicsSteps integer physics Steps
gravity vector3 gravity
translateSpeed float translate speed
rotateSpeed float rotate speed
jumpAllowed boolean jump Allowed
jumpStrength float jump Force
runAllowed boolean run Allowed
runSpeedMult float run speed mult
updateCollider button recompute colliding geo
startPosition vector3 start Position
startRotation vector3 start Position
reset button reset
minPolarAngle float min rotation angle
maxPolarAngle float max rotation angle
createHTMLLockElement boolean create clickable html element to lock the cursor
htmlLockElement string html used for the lock element
Is this doc helpful/not helpful? Is there any information you would like that is not available? Don't hesitate to get in touch with any question or feedback, either by email, on Discord or the forum.