The LocomotionProvider is the base class for various locomotion implementations.
This class provides simple ways to interrogate the LocomotionSystem 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 LocomotionSystem that this LocomotionProvider will communicate with for exclusive access to an XR Rig.
If one is not provided, the behavior 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
Declaration
public event Action<LocomotionSystem> endLocomotion
Event Type
Declaration
public event Action<LocomotionSystem> startLocomotion
Event Type