Description
The RotationSpeed
property of the PlayerController
class determines the speed at which the player character can rotate. This property is a float
value and is used to control the responsiveness of the player's rotation, particularly when using animations.
Usage
To adjust the player's rotation speed, set the RotationSpeed
property to a desired float
value. A higher value will result in faster rotation, while a lower value will slow down the rotation.
Example
// Example of setting the RotationSpeed property
PlayerController playerController = new PlayerController();
playerController.RotationSpeed = 5.0f; // Sets the rotation speed to 5 units per second