-
In the Components window of your character Blueprint, locate the Box Collision component whose rotation you want to lock.
-
Click on the component to select it, then navigate to the Details panel on the right side of the editor.
-
In the Details panel, locate the section labeled “Constraint Setup” and expand it.
-
Under “Constraint Setup,” you should see options for limiting the rotation of the component. To lock the rotation entirely, set the “Angular Swing1 Motion” and “Angular Swing2 Motion” options to “Locked.”
-
Once you’ve made the changes, be sure to click the “Apply” button to save your changes.