float BodyMass { get; set; }

robot_2Generated
code_blocksInput

Description

The BodyMass property represents the mass of the player's body in the game. It is a floating-point value that can be adjusted to affect the player's physics interactions, such as movement and collision responses. The mass is measured in arbitrary units and can be set within a specified range to ensure realistic behavior.

Usage

To modify the player's body mass, simply set the BodyMass property to a desired value within the range of 1 to 1000. This can be useful for simulating different player sizes or weights, which can affect how the player interacts with the game world.

Example

// Example of setting the BodyMass property
PlayerController playerController = new PlayerController();
playerController.BodyMass = 75.0f; // Set the player's body mass to 75 units