Our objectives include using Unity's particle system to create
a simple explosion of sorts for the various types of targets.
We'll also add sound effects to go along with each particle system explosion.
Okay, we're gonna go ahead and create a particle system.
Go under Hierarchy > Create > Particle System.
And I'll go ahead and rename this right away as
my Target-Positive-Explosion.
And we've got the default particle out there.
Let me go ahead and reset the transform to be the center of the world.
And let's go through and modify some of the properties of the particle system.
I've played with this for a while and I've preset this up, so
I'm gonna do this relatively quickly.
So the duration, rather than 5 seconds, I'm gonna set this to 0.4, so
it's not gonna last very long.
And I also don't want it to loop cuz it's gonna be basically a single explosion and
then end.
So the lifetime of each particle I'm gonna set to 0.4 seconds,
the duration of the overall particle system.
The Start Size, I'm gonna vary between two values.
So I'll say Random Between Two Constants.
And I'm gonna make it 0.2 meters to 0.5 meters,
because the target is gonna be blowing into small pieces, so
I don't want them to be the full size of the target.
I'll give a little bit of Gravity, so each particle will fall with gravity.
So I'll set this to 0.5.
And I'll leave the rest of the settings unchanged.
Under Admissions, I don't want this to continually generate particles.
So I'm gonna set the Rate as 0 but then I'm gonna add a Burst right at time 0.
I'll burst 10 particles.
For the Shape, the default Shape is the Cone.
When I shoot the target I want the particle to go in all directions.
So a good way to do that is to pick a Sphere, so
that the targets will render in all directions.
And then I'm gonna go down to Size Over Lifetime and turn this option On.
And I want them to decrease in size over the lifetime, so
let me go ahead and click on that.
Then I'm gonna pick this Curve so it starts at 1 and goes down to 0.
And the final thing, I'm gonna go down to the Renderer.
And the default is the Billboard Rendering 2D Billboard.
I'm gonna change this to the Mess Renderer because I'm gonna be rendering
actually cubes coming out of this particle systems.
And I need to set the Mesh.
I think it just by chance picked the Cube, which is fine.
So, if it didn't do that, I would bring up the target and pick my Cube.
And then I need to set the Material, so
once again we've got a bunch of materials already created.
Let me just use the target.