Direction of rotation of the object

here is a video for better explanation

before turning the character’s camera is the way I would like the block to rotate regardless of where I look