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 |