Detecting Collisions with Collectibles

Tutorial

·

Beginner

·

+10XP

·

15 mins

·

(4891)

Unity Technologies

Detecting Collisions with Collectibles

1. Overview

2. Disable PickUps with OnTriggerEnter

3. Add a tag to the PickUp Prefab

4. Write a conditional statement

5. Set the Pickup Colliders as triggers

6. Add a Rigidbody component to the PickUp Prefab

Optional Step

7. Final script sample

Complete this tutorial