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

ILocomotionEventHandler Interface

Defines an interface for handling locomotion events in the Interaction SDK.
This interface enables components to process and respond to various types of movement and teleportation events. Oculus.Interaction.Locomotion.CapsuleLocomotionHandler and Oculus.Interaction.Locomotion.FlyingLocomotor for example implementations.

Events

WhenLocomotionEventHandled : Action< LocomotionEvent, Pose >
Event that fires after a LocomotionEvent has been successfully handled, providing the original event and the resulting pose transformation.
This event can be used to synchronize other components or update visual feedback systems after locomotion occurs.
Signature
Action<LocomotionEvent, Pose> Oculus.Interaction.Locomotion.ILocomotionEventHandler.WhenLocomotionEventHandled

Methods

HandleLocomotionEvent ( locomotionEvent )
Processes an incoming locomotion event and applies the appropriate transformations or state changes based on the event type.
Signature
void Oculus.Interaction.Locomotion.ILocomotionEventHandler.HandleLocomotionEvent(LocomotionEvent locomotionEvent)
Parameters
locomotionEvent: LocomotionEvent  The LocomotionEvent containing movement or teleportation data
Returns
void