The locomotion provider is the base class for various locomotion implementations.
this class provides simple ways to interrogate the locomotion system for whether a locomotion can begin
and simple events for hooking into a start/end locomotion.
Inheritance
LocomotionProvider
public abstract class LocomotionProvider : MonoBehaviour
Properties
The Locomotion system that this locomotion provider will communicate with for exclusive access to an XR Rig.
If one is not provided, the system will attempt to locate one during its Awake call
Declaration
public LocomotionSystem system { get; set; }
Property Value
Methods
Declaration
protected virtual void Awake()
Declaration
protected bool BeginLocomotion()
Returns
Declaration
protected bool CanBeginLocomotion()
Returns
Declaration
protected bool EndLocomotion()
Returns
Events
The endingLocomotion action will be called when a Locomotion Provider stops a locomotion event
Declaration
public event Action<LocomotionSystem> endLocomotion
Event Type
The startingLocomotion action will be called when a Locomotion Provider starts a locomotion event
Declaration
public event Action<LocomotionSystem> startLocomotion
Event Type