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

FlyingLocomotor Class

Properties

float Acceleration[Get]
float AirDamping[Get]
Action< LocomotionEvent, Pose > WhenLocomotionEventHandled

Protected Fields

Action< LocomotionEvent, Pose > _whenLocomotionEventHandled[Get]
bool _started[Get]

Fields

Indicates whether the character was detected as grounded after the last move.

Member Functions

Sets a custom function that returns the last delta time in seconds.
Parameters
deltaTimeProvider
A delegate that returns the time elapsed since the last frame.
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
Instantly moves the Player to the character position
void InjectAllFlyingLocomotor
( CharacterController characterController,
Transform playerEyes,
Transform playerOrigin )
void InjectCharacterController
( CharacterController characterController )
void InjectPlayerEyes
( Transform playerEyes )
void InjectPlayerOrigin
( Transform playerOrigin )

Protected Functions

virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )
virtual void Update ( )
virtual void LateUpdate ( )
virtual void LastUpdate ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon