float MoveRotationSpeed { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The MoveRotationSpeed property of the CitizenAnimationHelper class specifies the rate at which the character rotates, measured in degrees per second. This property is crucial for controlling the character's foot shuffling during rotation. A positive value indicates clockwise rotation, while a negative value indicates counter-clockwise rotation.

Usage

To adjust the rotation speed of a character, set the MoveRotationSpeed property to a desired value. For example, if you want the character to rotate at 90 degrees per second clockwise, set this property to 90. If you want the character to rotate counter-clockwise at the same speed, set it to -90.

Example

// Example of setting the MoveRotationSpeed property
var animationHelper = new CitizenAnimationHelper();
animationHelper.MoveRotationSpeed = 90.0f; // Rotate clockwise at 90 degrees per second

// To rotate counter-clockwise
animationHelper.MoveRotationSpeed = -90.0f;