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

FlyingLocomotor Class

Extends MonoBehaviour

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.Locomotion.FlyingLocomotor._started
_whenLocomotionEventHandled : Action< LocomotionEvent, Pose >
Signature
Action<LocomotionEvent, Pose> Oculus.Interaction.Locomotion.FlyingLocomotor._whenLocomotionEventHandled

Fields

IsGrounded : bool
Indicates whether the character was detected as grounded after the last move.
Signature
bool Oculus.Interaction.Locomotion.FlyingLocomotor.IsGrounded

Properties

Acceleration : float
[Get][Set]
Signature
float Oculus.Interaction.Locomotion.FlyingLocomotor.Acceleration
AirDamping : float
[Get][Set]
Signature
float Oculus.Interaction.Locomotion.FlyingLocomotor.AirDamping
WhenLocomotionEventHandled : Action< LocomotionEvent, Pose >
Signature
Action<LocomotionEvent, Pose> Oculus.Interaction.Locomotion.FlyingLocomotor.WhenLocomotionEventHandled

Protected Methods

LastUpdate ()
Signature
virtual void Oculus.Interaction.Locomotion.FlyingLocomotor.LastUpdate()
Returns
void
LateUpdate ()
Signature
virtual void Oculus.Interaction.Locomotion.FlyingLocomotor.LateUpdate()
Returns
void
OnDisable ()
Signature
virtual void Oculus.Interaction.Locomotion.FlyingLocomotor.OnDisable()
Returns
void
OnEnable ()
Signature
virtual void Oculus.Interaction.Locomotion.FlyingLocomotor.OnEnable()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.Locomotion.FlyingLocomotor.Start()
Returns
void
Update ()
Signature
virtual void Oculus.Interaction.Locomotion.FlyingLocomotor.Update()
Returns
void

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.FlyingLocomotor.HandleLocomotionEvent(LocomotionEvent locomotionEvent)
Parameters
locomotionEvent: LocomotionEvent  The LocomotionEvent containing movement or teleportation data
Returns
void
InjectAllFlyingLocomotor ( characterController , playerEyes , playerOrigin )
Signature
void Oculus.Interaction.Locomotion.FlyingLocomotor.InjectAllFlyingLocomotor(CharacterController characterController, Transform playerEyes, Transform playerOrigin)
Parameters
characterController: CharacterController
playerEyes: Transform
playerOrigin: Transform
Returns
void
InjectCharacterController ( characterController )
Signature
void Oculus.Interaction.Locomotion.FlyingLocomotor.InjectCharacterController(CharacterController characterController)
Parameters
characterController: CharacterController
Returns
void
InjectPlayerEyes ( playerEyes )
Signature
void Oculus.Interaction.Locomotion.FlyingLocomotor.InjectPlayerEyes(Transform playerEyes)
Parameters
playerEyes: Transform
Returns
void
InjectPlayerOrigin ( playerOrigin )
Signature
void Oculus.Interaction.Locomotion.FlyingLocomotor.InjectPlayerOrigin(Transform playerOrigin)
Parameters
playerOrigin: Transform
Returns
void
ResetPlayerToCharacter ()
Instantly moves the Player to the character position
Signature
void Oculus.Interaction.Locomotion.FlyingLocomotor.ResetPlayerToCharacter()
Returns
void
SetDeltaTimeProvider ( deltaTimeProvider )
Sets a custom function that returns the last delta time in seconds.
Signature
void Oculus.Interaction.Locomotion.FlyingLocomotor.SetDeltaTimeProvider(Func< float > deltaTimeProvider)
Parameters
deltaTimeProvider: Func< float >  A delegate that returns the time elapsed since the last frame.
Returns
void