Rotations on "picked up" object
I have a script allowing the player to pick up objects (It's first person, so think of the Gravity Gun from Half-Life 2, where the object floats in front of the player when it's picked up)
Essentially, the object is spring jointed to an invisible object in front of the players camera. One pickup, the objects rotation constraints are frozen. I'm trying to make the object rotate on the Y to match the players rotation, while maintaining it's local Y (so the object actually looks like it's being held).
I've looked at a few methods to do similar things, but I can't seem to get it working properly. Any ideas?
Your answer
Follow this Question
Related Questions
Torque rigidbody toward desired rotation on two axes ignoring Y axes? 0 Answers
How do I get a Rigidbody to rotate in the direction it is moving? 0 Answers
AddForce in direction of different object? 1 Answer
Question about NavMesh and Rigidbody 0 Answers
Rotate rigid body with mobile joystick 0 Answers