Class SnapTurnProvider | XR Interaction Toolkit | 0.9.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class SnapTurnProvider

    Inheritance
    Object
    LocomotionProvider
    SnapTurnProvider
    Inherited Members
    LocomotionProvider.system
    LocomotionProvider.Awake()
    LocomotionProvider.CanBeginLocomotion()
    LocomotionProvider.BeginLocomotion()
    LocomotionProvider.EndLocomotion()
    LocomotionProvider.startLocomotion
    LocomotionProvider.endLocomotion
    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023