docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Namespace UnityEngine.XR.Interaction.Toolkit.Locomotion.Gravity

    Classes

    GravityProvider

    Locomotion provider that provides gravity to the player. This provider will also check if the player is grounded using a sphere cast from the player's head. Gravity will be applied to the player anytime useGravity is true and isGrounded is false. See IGravityController for external control over gravity.

    Interfaces

    IGravityController

    Interface for external control over the GravityProvider. This interface should be implemented from a LocomotionProvider and be parented or attached to a LocomotionMediator.

    Enums

    GravityOverride

    Locks the gravity for the given provider.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)