- Home /
i need my character to pick up objects and drop them....
i need my character to pick up an objects when he collides with it, and when another object collides with my character or object, the object should be dropped, PlEEAASSEE it's emergency ;)
Comment
Answer by Berenger · Jun 04, 2012 at 10:31 PM
This is collision detection. Assuming your character is using a character controller, you need to implement OnControllerColliderHit. Then, the picking up would be be making it a child of the player and deactivate it, the drop being the contrary.
Your answer
![](https://koobas.hobune.stream/wayback/20220613072345im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Item pickup and drop function 2 Answers
Who has the brains Player or object to be picked up 1 Answer
destroy GameObject without removing reference in list 1 Answer
How to pick / drop object 1 Answer
Pickup script error 1 Answer