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

PlayerLocomotor Class

Extends MonoBehaviour
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).

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.Locomotion.PlayerLocomotor._started

Properties

WhenLocomotionEventHandled : Action< LocomotionEvent, Pose >
Signature
Action<LocomotionEvent, Pose> Oculus.Interaction.Locomotion.PlayerLocomotor.WhenLocomotionEventHandled

Protected Methods

Start ()
Signature
virtual void Oculus.Interaction.Locomotion.PlayerLocomotor.Start()
Returns
void

Methods

HandleLocomotionEvent ( locomotionEvent )
Signature
void Oculus.Interaction.Locomotion.PlayerLocomotor.HandleLocomotionEvent(LocomotionEvent locomotionEvent)
Parameters
locomotionEvent: LocomotionEvent
Returns
void
InjectAllPlayerLocomotor ( playerOrigin , playerHead )
Signature
void Oculus.Interaction.Locomotion.PlayerLocomotor.InjectAllPlayerLocomotor(Transform playerOrigin, Transform playerHead)
Parameters
playerOrigin: Transform
playerHead: Transform
Returns
void
InjectPlayerHead ( playerHead )
Signature
void Oculus.Interaction.Locomotion.PlayerLocomotor.InjectPlayerHead(Transform playerHead)
Parameters
playerHead: Transform
Returns
void
InjectPlayerOrigin ( playerOrigin )
Signature
void Oculus.Interaction.Locomotion.PlayerLocomotor.InjectPlayerOrigin(Transform playerOrigin)
Parameters
playerOrigin: Transform
Returns
void