float GroundAngle { get; set; }

robot_2Generated
code_blocksInput

Description

The GroundAngle property of the CharacterController class represents the maximum angle of the ground that the character can walk on. This property is crucial for determining the character's ability to traverse sloped surfaces within the game environment.

Usage

To use the GroundAngle property, you can get or set its value to control the maximum slope angle the character can walk on. The value is a float and should be within the range of 0 to 90 degrees, as specified by the RangeAttribute.

Example usage:

CharacterController characterController = new CharacterController();
characterController.GroundAngle = 45.0f; // Set the maximum walkable slope angle to 45 degrees
float currentGroundAngle = characterController.GroundAngle; // Retrieve the current ground angle

Example

CharacterController characterController = new CharacterController();
characterController.GroundAngle = 45.0f; // Set the maximum walkable slope angle to 45 degrees
float currentGroundAngle = characterController.GroundAngle; // Retrieve the current ground angle