Description
The ClimbingRotation
property of the MoveModeLadder
class represents the rotation of the wall or ladder that the character is climbing. This rotation is crucial for determining the character's orientation while climbing. The Forward
vector of this rotation indicates the direction the character should face to look at the ladder, while the Up
vector indicates the direction in which the character should climb.
Usage
Use the ClimbingRotation
property to set or get the rotation of the ladder or wall the character is currently climbing. This property is essential for aligning the character's movement and orientation with the climbing surface.
Example
// Example of setting the ClimbingRotation property
MoveModeLadder ladderMode = new MoveModeLadder();
// Assuming we have a Rotation object representing the desired climbing orientation
Rotation ladderRotation = new Rotation(0, 90, 0); // Example rotation
// Set the ClimbingRotation to align with the ladder
ladderMode.ClimbingRotation = ladderRotation;
// Accessing the ClimbingRotation to adjust character orientation
Rotation currentClimbingRotation = ladderMode.ClimbingRotation;
// Use currentClimbingRotation to adjust character's view or movement