I would like to know if you guys know how bullets, lasers, and other projectiles aer handled in a 3D scene.
Lets examine a laser beam. The laser beam is constructed from a cylindar (I know you can take a plane and map a texture to it and animate the texture but its about the same thing). So do game engines continue to make new laser “objects” every time a player shoots (from a gun)? Or would an engine create say 100 laser objects and just use a circular que to pick which laser to use (hidding the lasers that aren’t used)?
So I have thought of 2 viabel methods kinda described above
-
Just create a new Laser object (and behavior controlling the thing) every time a shot is fired.
-
Create X lasers and just round robin them when needed (however, u are limited the number of lasers allowed on the screen at 1 time).
Are there better methods out there then the two above? Which method do you guys suggest?
Thanks for your input