Unity Tutorial: Shooting bullets using a particle system

Pubblicato il: 16 giugno 2021
sul canale di: Fross09
1,250
23

In this video I will Show you the method I use to fire bullets from a gun. This is the best method I have tried so far. It uses far fewer resources than Instantiating, and is more flashy and easier to customizable than raycasts.

This method works similar to instantiating, however we will use the particle system to emit our projectiles via the ParticleSystem.Emit() function.

the particle system will also utilize collisions, sending messages that will allow us to get some information from each individual particle within the system.

0:00 Intro: why this method is better
3:39 Scene Set Up
5:54 Gun and particle system Set up
15:40 bullet Script
24:03 Gun Script
30:58 Script Over View (skip here for the full code)
33:37 Shooting the bullet and outro

@1:14 I say shooting 3 bullets per second caused the frames to drop I meant to give a higher number like 20 or 30


In questa pagina del sito puoi guardare il video online Unity Tutorial: Shooting bullets using a particle system della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Fross09 16 giugno 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,250 volte e gli è piaciuto 23 spettatori. Buona visione!