GravitySettings

Inherits from Zigurous.CharacterController.MovementSettings

Declaration

[Serializable]
public sealed class GravitySettings : MovementSettings

Description

The gravity settings for a movement controller.

Properties

groundLayersThe layer(s) to detect the ground.
stickToGroundApplies a downward force to the character while on the ground so they stick to the ground despite gravity.
useCustomGravityUses the custom gravity force when set to true or uses Physics.gravity when set to false.
gravityForceThe custom gravity force direction.