Doc > Nodes > EVENT > MobileJoystickControls

Doc > Nodes > EVENT > MobileJoystickControls

Creates a virtual joystick for mobile first person controls


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; }


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
customTranslateElement boolean specify a custom HTML element
translateElementSelector string jump HTML element selector
jumpAllowed boolean jump Allowed
jumpStrength float jump Force
customJumpElement boolean specify a custom HTML element
jumpElementSelector string jump HTML element selector
runAllowed boolean run Allowed
runSpeedMult float run speed mult
customRunElement boolean specify a custom HTML element
runElementSelector string jump HTML element selector
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
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.