I have a head and upper body lookup aimoffset that works perfectly when the character is standing. But when the character is lying down the head starts to turn completely wrong. Instead of just looking left-right and up-down it starts to roll around forward axis (it means, going to one shoulder or another). There is even no animation like that in the aim offset. It looks like the unreal is thinking the head is still vertical and then apply incorrect rotations.
Does anybody know how to solve this problem?