save the Last Rotation of your Actor, and use Delta(Rotator) with the Last Saved Rotation and the Current Rotation.
The Yaw Value represents your Leaning. You probably want to clamp this.
This is not accurate though, but it is a starting point.
save the Last Rotation of your Actor, and use Delta(Rotator) with the Last Saved Rotation and the Current Rotation.
The Yaw Value represents your Leaning. You probably want to clamp this.
This is not accurate though, but it is a starting point.