Description
The RotationAngleLimit
property of the PlayerController
class specifies the maximum angle limit for player rotation. This property is used to control how far the player can rotate, which can be particularly useful in scenarios where you want to restrict the player's rotation to a certain range.
Usage
To use the RotationAngleLimit
property, you can get or set its value to define the maximum rotation angle for the player. This property is a float
and can be adjusted to suit the needs of your game mechanics.
Example usage:
PlayerController playerController = new PlayerController();
playerController.RotationAngleLimit = 45.0f; // Set the rotation angle limit to 45 degrees
Example
PlayerController playerController = new PlayerController();
playerController.RotationAngleLimit = 45.0f; // Set the rotation angle limit to 45 degrees