Class ClimbProvider
Locomotion provider that allows the user to climb a ClimbInteractable by selecting it. Climb locomotion moves the XR Origin counter to movement of the last selecting interactor, with optional movement constraints along each axis of the interactable.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit
Assembly: solution.dll
Syntax
[AddComponentMenu("XR/Locomotion/Climb Provider", 11)]
[HelpURL("https://docs.unity.cn/Packages/com.unity.xr.interaction.toolkit@3.0/api/UnityEngine.XR.Interaction.Toolkit.ClimbProvider.html")]
public class ClimbProvider : LocomotionProvider
Properties
| Name | Description |
|---|---|
| climbAnchorInteractable | The interactable that is currently grabbed and driving movement. This will be null if there is no active climb. |
| climbAnchorInteractor | The interactor that is currently grabbing and driving movement. This will be null if there is no active climb. |
| climbSettings | Climb locomotion settings. Can be overridden by the ClimbInteractable used for locomotion. |
| transformation | The transformation that is used by this component to apply climb movement. |
Methods
| Name | Description |
|---|---|
| Awake() | See MonoBehaviour. |
| FinishClimbGrab(IXRSelectInteractor) | Finishes the grab driven by |
| StartClimbGrab(ClimbInteractable, IXRSelectInteractor) | Starts a grab as part of climbing |
| Update() | See MonoBehaviour. |
Events
| Name | Description |
|---|---|
| climbAnchorUpdated | Calls the methods in its invocation list when the provider updates climbAnchorInteractable and climbAnchorInteractor. This can be invoked from either StartClimbGrab(ClimbInteractable, IXRSelectInteractor) or FinishClimbGrab(IXRSelectInteractor). This is not invoked when climb locomotion ends. |