I need to update the direction/Lifetime of my particles to match my craft as it moves.
I've built an emitter like so:
Code: Select all
tmp->LEngineFX = smgr->addParticleSystemSceneNode(false,tmp->node);
tmp->LEngineFX->setPosition(vector3df(20.0f,20.0f,60.0f));
tmp->LEngineFX->setScale(vector3df(4,4,4));
tmp->LEngineFX->setParticleSize(dimension2d<f32>(2.0f, 2.0f));
tmp->LEngineFXEmit = tmp->LEngineFX->createBoxEmitter(
aabbox3d<f32>(-2,-2,-2,2,2,2),
vector3df(0.0f,0.0f,0.1f),
400,600,
video::SColor(0,255,200,200), video::SColor(0,255,255,200),
40,60);
tmp->LEngineFX->setEmitter(tmp->LEngineFXEmit);
tmp->LEngineFXEmit->drop();
This seems like it would take more process/memory then neccessary.
Thanks for any help!