Description
The BodyMass
property of the PlayerController
class represents the mass of the player's body in the game. This property is used to determine the physical characteristics of the player, such as how they interact with other objects and forces in the game world.
Usage
You can get or set the BodyMass
property to adjust the player's mass. The value must be a float
within the range of 1 to 1000. This range ensures that the mass is realistic and manageable within the game's physics engine.
Example
// Example of setting the BodyMass property
PlayerController playerController = new PlayerController();
playerController.BodyMass = 75.0f; // Set the player's body mass to 75 units