Method TryPrepareLocomotion
TryPrepareLocomotion()
Attempts to transition this provider into the Preparing state. This succeeds if isLocomotionActive was false when this was called.
Declaration
protected bool TryPrepareLocomotion()
Returns
| Type | Description |
|---|---|
| bool | Returns true if isLocomotionActive was false when this was called, false otherwise. |
Remarks
If this succeeds, then the provider can enter the Moving state either by calling TryStartLocomotionImmediately() or by waiting for the mediator's next Update() in which the provider's canStartMoving is true. When the provider enters the Moving state, it will invoke locomotionStarted and gain access to the XRBodyTransformer.