[edit]On a second glance it appears to emit several. However they are always in a stream in the same direction. How can i get them to emit in varied directions?[/edit]
code here:
Code: Select all
IParticleSystemSceneNode* ps = device->getSceneManager()->addParticleSystemSceneNode(false,entityArray[eid].node,0,vector3df(0,10,0));
IParticleEmitter* em=ps->createPointEmitter(vector3df(0.05,0.05,0.05),100,1000,SColor(0,120,0,0),SColor(0,255,0,0),1000,2000,60);
ps->setEmitter(em);
em->drop();
ps->setParticleSize(dimension2d<f32>(0.5,0.5));
IParticleAffector* p=ps->createGravityAffector(vector3df(0,-0.5,0));
ps->addAffector(p);
p->drop();
ps->setMaterialFlag(video::EMF_LIGHTING, false);
ps->setMaterialTexture(0, driver->getTexture("./textures/blood.jpg"));