Method TryEndLocomotion
TryEndLocomotion()
Attempts to transition this provider into the Ended state. This succeeds if isLocomotionActive was true when this was called.
Declaration
protected bool TryEndLocomotion()
Returns
| Type | Description |
|---|---|
| bool | Returns true if isLocomotionActive was true when this was called, false otherwise. |
Remarks
After this provider enters the Ended state, it will invoke locomotionEnded and lose access to the XRBodyTransformer. Then during the mediator's Update() in the next frame, the provider will enter the Idle state, unless it has called TryPrepareLocomotion() or TryStartLocomotionImmediately() again.