API reference
API reference
Select your platform
No SDKs available
No versions available

PlayerLocomotor Class

Extends MonoBehaviour, ILocomotionEventHandler
Moves a player when receiving events from ILocomotionEventBroadcasters.
The movement can be a combination of translations and rotations and it happens at the very end of the frame (after rendering).

Properties

Action< LocomotionEvent, Pose > WhenLocomotionEventHandled

Protected Fields

bool _started[Get]

Protected Functions

virtual void Start ( )

Member Functions

Processes an incoming locomotion event and applies the appropriate transformations or state changes based on the event type.
Parameters
locomotionEvent
The LocomotionEvent containing movement or teleportation data
void InjectAllPlayerLocomotor
( Transform playerOrigin,
Transform playerHead )
void InjectPlayerOrigin
( Transform playerOrigin )
void InjectPlayerHead
( Transform playerHead )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon