Description
The RotationSpeed
property of the PlayerController
class determines the speed at which the player character rotates. This property is a float
value and is used to control how quickly the player can turn around in the game world. It is particularly useful in scenarios where precise control over player rotation is required, such as in first-person or third-person games.
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 speed.
Example
// Example of setting the RotationSpeed property
PlayerController playerController = new PlayerController();
playerController.RotationSpeed = 5.0f; // Sets the rotation speed to 5 units per second