Hello, i hope that someone can give a hand of how to do it.
I’m using a character controller as a player, but since i’m thinking about to switch to a rigidbody with “isKinematic” flag on, and turns it off when i need physics to run on my player. What i’m traying to do right now is to make the player pick up a item and hold in his hand. So i think that i could add a hinge to the player rigidbody dynamically. Is it possible?
Do you guys have any sugestions of how to do this?
The thing is, how do i add the object to the player? Im working only with the script part, with no animation or anything. My player is a ball and the item is a cube. I want the sphere to hold the cube. Like, attaching to it. How would i “givePlayerGun();” in my situation?
maybe you could state the position you want the cube to be, like right in front of the sphere. or you could create an empty object, once the sphere collides with the cube, the cube moves to that empty objects position. while the empty object should be a child of the sphere, therefore following it.