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 - Unity Tutorial
From the course: Cert Prep: Unity Certified Associate Game Developer Audio and Effects
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Understanding particle systems4m 3s
-
(Locked)
Exploring the particles package5m 24s
-
(Locked)
Building a particle system6m 19s
-
(Locked)
Controlling particle color and appearance4m 4s
-
(Locked)
Configuring particle collisions: Part 15m 16s
-
(Locked)
Configuring particle collisions: Part 24m 45s
-
(Locked)
-