Doc > Nodes > EVENT > MobileJoystickControls

Doc > Nodes > EVENT > MobileJoystickControls

Creates a virtual joystick for mobile first person controls

Description

Ensure to have the following tag in your html : as this will prevent the screen from zooming in and out when using a finger to translate and another to rotate.

And if you are using an iphone, you may need to also add the following css: - to prevent page reload when swiping down body { overscroll-behavior-y: none; position: fixed; overflow: hidden; } - and to disable page zoom from double tap or when using 2 fingers body { touch-action: none; }

Parameters

Name Type Description
colliderObject node_path collider object
capsuleRadius float collision Capsule Radius
capsuleHeight float collision Capsule Height
physicsSteps integer physics Steps
gravity vector3 gravity
translateSpeed float translation speed
rotateSpeed float rotation 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 polar angle
maxPolarAngle float max polar angle