The restrict rotation ability will restrict the character to the specified rotation.
- Select the + button in the ability list under the “Abilities” foldout of the Ultimate Character Locomotion component.
- Add the Restrict Rotation ability. This ability can run concurrently with other abilities so the location within the list does not matter.
- Input the angle of restriction that you’d like to apply to the character.
The number of degrees that the character can rotation between. This restriction is applied to the local up axis. If for example you’d only like the character to move forward, left, right, or backwards in a grid pattern then this value should be set to 90. A value of 180 will allow the character to only rotate in the forward and backwards direction.
Any offset that should be applied to the local y rotation. This doesn’t add or remove any restriction but it does allow the character to orient towards a different starting direction.
Relative Look Source Rotation
Should the local y rotation of the look source be applied to the rotation?
Look Source Offset
Any offset that should be applied to the look source y rotation.