From the course: Cert Prep: Unity Certified Associate Game Developer Audio and Effects

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Configuring particle collisions: Part 2

Configuring particle collisions: Part 2 - Unity Tutorial

From the course: Cert Prep: Unity Certified Associate Game Developer Audio and Effects

Start my 1-month free trial

Configuring particle collisions: Part 2

- [Instructor] In this movie we'll complete the collision detection behavior for our particles system by creating a new script that will attach to the particle system. To handle collisions with the player character. To do that, I'll go to the Script's folder here where we have our whole script. I'll right click, choose Create. And then I'm going to choose C# Script. I'm going to call this script Col Handler for collision handler. And I'll drag and drop that onto the particle system object. It's important that this script gets attached to the particle system where collisions have been enabled. The next thing I'll do is double click the collision handler to open that inside Visual Studio here. So we have our collision handler. And the only thing that I need to do inside this is to delete these functions. And I'm going to create a variable that specifies the damage power. The amount of damage that will be dealt to the…

Contents