Hey, just as a side experiment to help learn C++, I revamped my older 2d particle system with some C++ routines for extra speed, and extra functions.
The engine features:
-C++ routines for extra speed
-simple Emit particle function to drop a particle
-Particles can be automaticaly faded away/rotatated to their direction
-Can render multible layers of particles, by setting a Z parameter on a partical at creation.
-Can offset a particle/group of particles
-Can add a force to a particle, in otherwords, like the offset but it changes direction slowly (showing momentum ect.) this is what is used in this demo to create a gravity effect.
-Built in convince functions like ParticleExplosion, or ParticleCount.
-Can clear all the particles with a single call, or only certain layers.
Anyways, here's the module / a demonstration of it:
link
hold the LMB to do a rapid particle explosion, and the RMB to do a particle fountain.
Let me know what you guys think. I was going to go with arrays, but the complication is not worth the better preformance.
The engine features:
-C++ routines for extra speed
-simple Emit particle function to drop a particle
-Particles can be automaticaly faded away/rotatated to their direction
-Can render multible layers of particles, by setting a Z parameter on a partical at creation.
-Can offset a particle/group of particles
-Can add a force to a particle, in otherwords, like the offset but it changes direction slowly (showing momentum ect.) this is what is used in this demo to create a gravity effect.
-Built in convince functions like ParticleExplosion, or ParticleCount.
-Can clear all the particles with a single call, or only certain layers.
Anyways, here's the module / a demonstration of it:
link
hold the LMB to do a rapid particle explosion, and the RMB to do a particle fountain.
Let me know what you guys think. I was going to go with arrays, but the complication is not worth the better preformance.