Class TwoHandedGrabMoveProvider
Allows the user to combine two GrabMoveProvider instances for locomotion. This allows the user to translate, scale, and rotate themselves counter to transformations of the line segment between both hands.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit
Assembly: solution.dll
Syntax
[DefaultExecutionOrder(-209)]
[AddComponentMenu("XR/Locomotion/Two-Handed Grab Move Provider", 11)]
[HelpURL("https://docs.unity.cn/Packages/com.unity.xr.interaction.toolkit@3.0/api/UnityEngine.XR.Interaction.Toolkit.TwoHandedGrabMoveProvider.html")]
public class TwoHandedGrabMoveProvider : ConstrainedMoveProvider
Properties
| Name | Description |
|---|---|
| enableRotation | Controls whether to enable yaw rotation of the user. |
| enableScaling | Controls whether to enable uniform scaling of the user. |
| leftGrabMoveProvider | The left hand grab move instance which will be used as one half of two-handed locomotion. |
| maximumScale | The maximum user scale allowed. |
| minimumScale | The minimum user scale allowed. |
| moveFactor | The ratio of actual movement distance to controller movement distance. |
| overrideSharedSettingsOnInit | Controls whether to override the settings for individual handed providers with this provider's settings on initialization. |
| requireTwoHandsForTranslation | Controls whether translation requires both grab move inputs to be active. |
| rightGrabMoveProvider | The right hand grab move instance which will be used as one half of two-handed locomotion. |
| rotateTransformation | The transformation that is used by this component to apply rotation movement. |
| scaleTransformation | The transformation that is used by this component to apply scaling. |
Methods
| Name | Description |
|---|---|
| ComputeDesiredMove(out bool) | Determines how much to move the rig. |
| MoveRig(Vector3) | Creates a locomotion event to move the rig by |
| OnDisable() | See MonoBehaviour. |
| OnEnable() | See MonoBehaviour. |