docs.unity3d.com
    Show / Hide Table of Contents

    Enum ConstrainedMoveProvider.GravityApplicationMode

    Defines when gravity begins to take effect.

    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    public enum GravityApplicationMode

    Fields

    Name Description Value
    AttemptingMove

    Only begin to apply gravity and apply locomotion when a move input occurs. When using gravity, continues applying each frame, even if input is stopped, until touching ground.


    Use this style when you don't want gravity to apply when the player physically walks away and off a ground surface. Gravity will only begin to move the player back down to the ground when they try to use input to move.

    0
    Immediately

    Apply gravity and apply locomotion every frame, even without move input.


    Use this style when you want gravity to apply when the player physically walks away and off a ground surface, even when there is no input to move.

    1
    See Also
    gravityMode
    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