|
i am trying to get a user to click an item and pick it up. i have done this. however when the user rotates the item it holds finds it hard to keep up with the user. my original idea was to replace the the empty game object i have in my controller with the item i clicked but i could not get this to work. if you have any ideas how id this it will be greatly appreciated. here the code used
(comments are locked)
|
|
You could add a FixedJoint as a component (GameObject.AddComponent) to the clicked object and set the players or First Person Controllers rigid body as the connectedBody.
(comments are locked)
|
|
i parented it to the fps controller in the end saved having to update but now my object shrinks when i kneel down. thanks for repsonse though
(comments are locked)
|
