how i make a explosion

how can i make a explosion as my bullet touch the ground

2 Answers

2

Use the Detonator package

Very generic, Ill do my best.

  1. Create a particle system that you would like to be the explosion.
  2. Check to see when bullet hits(with collider or raycast).
  3. Instantiate the particle system at the bullet’s position.
  4. Destroy the bullet.

Thats the the idea, as for actual code…the question is way to generic.