Description
The BodyHeight
property of the PlayerController
class represents the height of the player's body in the game world. This property is used to define the vertical size of the player's physical representation, which can affect interactions with the environment, such as collisions and movement through spaces.
Usage
You can get or set the BodyHeight
property to adjust the player's body height. The value is a float
and should be within the range specified by the RangeAttribute
, which is from 1 to 128. This allows for fine-tuning of the player's height to fit different gameplay scenarios or character designs.
Example
// Example of setting the BodyHeight property
PlayerController playerController = new PlayerController();
playerController.BodyHeight = 72.0f; // Set the player's body height to 72 units
// Example of getting the BodyHeight property
float currentHeight = playerController.BodyHeight;
Console.WriteLine($"Current Body Height: {currentHeight}");