Player (Rigid Body) not collecting/picking up GameObject (Cube)
The Player which is a Rigid Body doesn't collect the GameObject. Instead, it walks right through it. Additional Details: In the Player Script, I'm using
void onTriggerEnter(Collider other){ if (other.gameObject.tag=="Pick"){ gameObject.SetActive(false); } } isTrigger checkbox for Pick-able GameObject is checked. I have followed several videos including official Unity video for collectibles but nothing seems to be working. Any help would be greatly appreciated. ,The Player which is a Rigid Body doesn't collect the GameObject. Instead, it walks right through it. Additional Details: In the Player Script, I'm using
void onTriggerEnter(Collider other){ if (other.gameObject.tag=="Pick"){ gameObject.SetActive(false); } } isTrigger checkbox for Pick-able GameObject is checked. I have followed several videos including official Unity video for collectibles but nothing seems to be working. Any help would be greatly appreciated.
Your answer
Follow this Question
Related Questions
Destroy instatiate object on trigger enter / collision,destroy instantiate prefab on trigger enter 0 Answers
Moving a child object to collide with wall. 1 Answer
How to make Objects collectible HELP PLEASE 1 Answer
How to get the Collider other element Rigidbody? 0 Answers
Remove Door's collider if cube is in the trigger,Destroy Door's Collider if box is in the trigger 0 Answers