I’ve been playing around with this issue for a while and have yet to figure out a satisfactory solution. Hopefully someone here can help.
A core mechanic of my project is that the player can pick up objects, move them around, rotate them, throw them, etc. Everything works, except the rotation.
Every object the player can pick up has a rigidbody with high angular drag so it doesn’t rotate on its own while the player is carrying it.
I want to be able to rotate the objects relative to the player’s facing, rather than their own axes. If I press the “rotate clockwise” button, for example, it should appear to rotate clockwise from the player’s perspective, regardless of which direction “forward” is for the object itself. Is this even possible? If so, what’s the best approach?
EDIT: Found a solution on another forum: I used RotateAround, with the transform that acts as a parent to the held object as the parameters.