Download

Pawn with CapsuleComponent as RootComponent

Hello, I am trying to create a physical character.

My Character is a Pawn.
Structure:
Root - CapsuleComponent
SkeletalMesh -> Child of CapsuleComponent
I made a component capsule, put a physics simulation on true, lock rotation on X,Y.
I move the pawn with AddForce.

in Class Defaults: UseControllerRotationYaw = true
in SpringArmComponent: UsePawnControlRotation = true

BUG:
When a capsule collides with an object, it changes rotation. But the forward vector remains the same. How is this even possible?
In the video: The red line is a trace by the forward vector. The gray arrow is the component that is in the capsule.

I call the trace like this

4ca233de8ce5cd114598800be1370e521e5e918e.png
https://forums.unrealengine.com/core/image/gif;base64
​​

0fa45c5c816bb0036163544c2fce60a80b9baed3.jpeg