Class SnapTurnProvider
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
public sealed class SnapTurnProvider : LocomotionProvider
Properties
controllers
The XRControllers that allow SnapTurn. An XRController must be enabled in order to Snap Turn.
Declaration
public List<XRController> controllers { get; set; }
Property Value
Type | Description |
---|---|
List<XRController> |
deadZone
The deadzone that the controller movement will have to be above to trigger a snap turn.
Declaration
public float deadZone { get; set; }
Property Value
Type | Description |
---|---|
Single |
debounceTime
The amount of time that the system will wait before starting another snap turn.
Declaration
public float debounceTime { get; set; }
Property Value
Type | Description |
---|---|
Single |
turnAmount
The number of degrees clockwise to rotate when snap turning clockwise.
Declaration
public float turnAmount { get; set; }
Property Value
Type | Description |
---|---|
Single |
turnUsage
The 2D Input Axis on the primary device that will be used to trigger a snap turn.
Declaration
public SnapTurnProvider.InputAxes turnUsage { get; set; }
Property Value
Type | Description |
---|---|
SnapTurnProvider.InputAxes |