You are already dead

Now that we have a player that can fire a gun, we need to have the projectiles fired from that gun to collide with enemies and for those enemies to take damage when hit and be destroyed.

To accomplish this we will add a Particle Collider to our gun system and add a damage script to our enemies so they can respond to being hit by projectiles.

World Particle Colliders

The World Particle Collider is what is used to detect collisions between particles and other colliders in a scene. The other colliders in the scene can be any one of the normal spheres, boxes, capsules, and wheel or mesh colliders that Unity can assign to a game object.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.111.183