7
edits
Changes
→[B] - HOW TO USE
Colour c = Colour(1.0f,0.0f,0.0f); //for object (material type)... not actually used
float p = 0.5f; //for object (reflectivity)... not actually used
iParticleGenerator* particleEffect1 = CreateParticleGenerator(generatorlifespan, particlelifespan, particlespawnrate, spawndispersion, theta, startingspeed, startcolour, endcolour, frequencycolour, startsize, endsize, frequencysize, startgravity, endgravity, frequencygravityvertical, frequencygravityhorizontal, startalpha, endalpha, frequencyalpha, &c, &p);
//Add your desired texture on
iTexture* particle_texture = CreateTexture(L"bubble.tga");
particleEffect1->attach(particle_texture,0);
//Position your particle
particleEffect1->translate(250,70,250);
//Optionally particles may be set to attract to other objects or positions in the world
//((ParticleGenerator*)particleEffect1)->AttractTo(someObject,250.0f);
//((ParticleGenerator*)particleEffect1)->AttractTo(&Vector(50,50,50),250.0f);