Skip to content

Class: ActionLocomotionInputProvider

Defined in: packages/core/src/locomotion/locomotion-input-provider.ts:30

Converts low-level input actions into locomotion intent.

Locomotion should not care whether input came from XR controllers, keyboard, browser gamepads, or an app-authored adapter. This provider is the narrow bridge between generic actions and the existing locomotor systems.

Constructors

Constructor

new ActionLocomotionInputProvider(world): ActionLocomotionInputProvider

Defined in: packages/core/src/locomotion/locomotion-input-provider.ts:31

Parameters

world

World

Returns

ActionLocomotionInputProvider

Methods

enableBrowserControls()

enableBrowserControls(options): void

Defined in: packages/core/src/locomotion/locomotion-input-provider.ts:33

Parameters

options

BrowserLocomotionControls

Returns

void


getJumpDown()

getJumpDown(): boolean

Defined in: packages/core/src/locomotion/locomotion-input-provider.ts:68

Returns

boolean


getMoveAxis()

getMoveAxis(out): Vector2

Defined in: packages/core/src/locomotion/locomotion-input-provider.ts:52

Parameters

out

Vector2

Returns

Vector2


getMovementReferenceQuaternion()

getMovementReferenceQuaternion(out): Quaternion

Defined in: packages/core/src/locomotion/locomotion-input-provider.ts:59

Parameters

out

Quaternion

Returns

Quaternion


getTeleportActive()

getTeleportActive(pointerBusy, microGestureControlsEnabled): boolean

Defined in: packages/core/src/locomotion/locomotion-input-provider.ts:102

Parameters

pointerBusy

boolean

microGestureControlsEnabled

boolean

Returns

boolean


getTeleportCommit()

getTeleportCommit(microGestureControlsEnabled): boolean

Defined in: packages/core/src/locomotion/locomotion-input-provider.ts:122

Parameters

microGestureControlsEnabled

boolean

Returns

boolean


getTeleportRay()

getTeleportRay(origin, direction): boolean

Defined in: packages/core/src/locomotion/locomotion-input-provider.ts:135

Parameters

origin

Vector3

direction

Vector3

Returns

boolean


getTurnAxis()

getTurnAxis(): number

Defined in: packages/core/src/locomotion/locomotion-input-provider.ts:72

Returns

number


getTurnLeftDown()

getTurnLeftDown(microGestureControlsEnabled): boolean

Defined in: packages/core/src/locomotion/locomotion-input-provider.ts:76

Parameters

microGestureControlsEnabled

boolean

Returns

boolean


getTurnRightDown()

getTurnRightDown(microGestureControlsEnabled): boolean

Defined in: packages/core/src/locomotion/locomotion-input-provider.ts:87

Parameters

microGestureControlsEnabled

boolean

Returns

boolean


shouldShowTurnSignals()

shouldShowTurnSignals(microGestureControlsEnabled): boolean

Defined in: packages/core/src/locomotion/locomotion-input-provider.ts:98

Parameters

microGestureControlsEnabled

boolean

Returns

boolean

Privacy | Terms