How to rotate object based on direction

Hi,

I want to rotate an object based on a direction my character is pushing (X or Y), I can get the direction the player is pushing, and for example I want to rotate by 90.0f on the direction I am pushing.

I am bad with rotation stuff

Tried to set actors rotation equal to the camera rotation?

No, I want to push an object in a direction based where the player is and I need to rotate this object by 90.0f towards that direction

I’m sorry, but I don’t understand what you’re trying to do.
Could you write an example of that situation?