The RunSpeed
property of the PlayerController
class specifies the speed at which the player moves when running. This property is a float
value and is used to control the player's movement speed when the run action is triggered.
The RunSpeed
property of the PlayerController
class specifies the speed at which the player moves when running. This property is a float
value and is used to control the player's movement speed when the run action is triggered.
To adjust the player's running speed, set the RunSpeed
property to the desired value. This can be done in the player's initialization or dynamically during gameplay to modify the player's speed based on game conditions or power-ups.
// Example of setting the RunSpeed property PlayerController playerController = new PlayerController(); playerController.RunSpeed = 10.0f; // Set the running speed to 10 units per second