Roll-a-Ball: 6.5 Add a Rigidbody to the PickUp Prefab
In this tutorial, you’ll:

– Revise your PlayerController script to make PickUpGameObjects disappear when they collide with the Player sphere
– Tag PickUp GameObjects and write conditional statements to make sure they’re the only things that disappear
– Set the Prefab PickUp Collider as a trigger and add a Rigidbody component, to make the collectibles work properly

For the full course on Unity learn to go:

View on YouTube