Rotation calculation

I have a player that can rotate in all axis’. This player can grab objects via a PhysicsHandle and rotate them on all axis’ as well. However, I want the object to always rotate the same way relative to the player. For example, if the player presses the ‘home’ key, the object will always appear to rotate “away” from the player. I can’t seem to nail down the math behind this and google hasn’t been kind. Any suggestions?

You can try getting Camera/Player right vector and rotate the object around it. It’s for rotating “away”. same with Forward vector. And Z is probably always the same, so no problems there.

I don’t know why but this caused a light bulb to go off in my head. Thanks.

Turer’s comment caused a light bulb to go off in m head. Thanks.