Project 1B: Barrel Bouncer (Interactions)

Part 3: Spawning Barrels Into Your Scene

In this section, you will be implementing functionality where you spawn a barrel at a raycasted point when you right-click on your mouse.

Creating the Barrel Prefab

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

Writing the Script

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

Previous Section | Go Home | Next Section