Rotate the character
3D Characters
Assigning a Rotation
CharacterActor.Rotation = SomeQuaternion;Setting a direction property
CharacterActor.Forward = LookingDirection;Using the actor public methods
// Rotate using the "up" direction as the axis until forward = targetVector
CharacterActor.RotateYaw(targetVector);
// Rotate a given amount (degrees) using the "up" direction as the axis
CharacterActor.RotateYaw(amount);
// Rotate around a pivot a given amount (degrees) using the "up" direction as the axis
CharacterActor.RotateYaw(amount, pivot);
// Rotate a given amount (degrees) using the "right" direction as the axis
CharacterActor.RotatePitch(amount);
// Rotate a given amount (degrees) using the "forward" direction as the axis
CharacterActor.RotateYaw(amount);2D Characters

Last updated