Class ContinuousTurnProvider
Locomotion provider that allows the user to smoothly rotate their rig continuously over time based on read input values, such as from the controller thumbstick.
Inheritance
ContinuousTurnProvider
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.Interaction.Toolkit.Locomotion
Assembly: solution.dll
Syntax
[AddComponentMenu("XR/Locomotion/Continuous Turn Provider", 11)]
[HelpURL("https://docs.unity.cn/Packages/com.unity.xr.interaction.toolkit@3.0/api/UnityEngine.XR.Interaction.Toolkit.Locomotion.ContinuousTurnProvider.html")]
public class ContinuousTurnProvider : LocomotionProvider
Properties
| Name | Description |
|---|---|
| leftHandTurnInput | Reads input data from the left hand controller. Input Action must be a Value action type (Vector 2). |
| rightHandTurnInput | Reads input data from the right hand controller. Input Action must be a Value action type (Vector 2). |
| transformation | The transformation that is used by this component to apply turn movement. |
| turnSpeed | The number of degrees/second clockwise to rotate when turning clockwise. |
Methods
| Name | Description |
|---|---|
| GetTurnAmount(Vector2) | Determines the turn amount in degrees for the given |
| OnDisable() | See MonoBehaviour. |
| OnEnable() | See MonoBehaviour. |
| TurnRig(float) | Rotates the rig by |
| Update() | See MonoBehaviour. |