@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / XRLocomotionSystem
Class: XRLocomotionSystem ​
Defined in: systems/XRLocomotionSystem.ts:34
Implements ​
Constructors ​
Constructor ​
ts
new XRLocomotionSystem(inputSystem): XRLocomotionSystem;Defined in: systems/XRLocomotionSystem.ts:69
Parameters ​
| Parameter | Type |
|---|---|
inputSystem | XRInputSystem |
Returns ​
XRLocomotionSystem
Methods ​
setInteractionSystem() ​
ts
setInteractionSystem(interactionSystem): void;Defined in: systems/XRLocomotionSystem.ts:65
Wire the interaction system so grabs suppress teleport on that hand.
Parameters ​
| Parameter | Type |
|---|---|
interactionSystem | XRInteractionSystem | null |
Returns ​
void
update() ​
ts
update(world, deltaTime): void;Defined in: systems/XRLocomotionSystem.ts:73
Parameters ​
| Parameter | Type |
|---|---|
world | World |
deltaTime | number |
Returns ​
void
Implementation of ​
getAimCurve() ​
ts
getAimCurve(): Vector3[];Defined in: systems/XRLocomotionSystem.ts:397
Arc points up to the landing spot this frame; empty when not aiming.
Returns ​
Vector3[]
isAimValid() ​
ts
isAimValid(): boolean;Defined in: systems/XRLocomotionSystem.ts:402
True when the aim lands on a valid teleport area.
Returns ​
boolean
getLandingPoint() ​
ts
getLandingPoint(): Vector3 | null;Defined in: systems/XRLocomotionSystem.ts:407
Where the arc currently lands, or null when not aiming at a valid area.
Returns ​
Vector3 | null

