- Home /
How do I make a fixed RigidBody always face the direction of the RigidBody it is fixed to (Unity2D)
I am trying to make a RigidBody that is stuck to the player. When the player rotates i would like that RigidBody to rotate to so that it is always in front of the direction that the player is facing. I'm new to unity so please be patient.
First of all a Rigidbody is not a type that can exist on its own, so you probably want a GameObject with a Rigidbody attached to it? And why do you want a Rigidbody, if you want it to always be stuck to the player? Unity's description of Rigidbody: Control of an object's position through physics simulation. Adding a Rigidbody component to an object will put its motion under the control of Unity's physics engine. What you are describing does not require a Rigidbody, unless you want to simulate some sort of physics. Have a GameObject being "stuck" to the player is done with the Scene Hierarchy ins$$anonymous$$d. Sorry if I misunderstood your question and if it is not the answer you are looking for. If that's the case please give more details about your endeavour.