Project 1B: Barrel Bouncer (Interactions)

Part 4: Throwing Bouncy Balls

In this section, you will be implementing functionality where you throw a bouncy ball when you left-click on your mouse in order to try to destroy barrels.

Creating the Ball Prefab

To complete the setup for this section, follow these steps:

Writing the Scripts

In your player controller, you should define a public reference to the ball prefab and implement the following functionality:

You should also implement the following functionality, but it does not necessarily have to be in the player controller script:

Bonus Tasks (Optional)

Previous Section | Go Home | Next Section