Code: Select all
class _wallParticleEffect : public irr::scene::IParticleSystemSceneNode
{
.....
and this is the constructor:
Code: Select all
_wallParticleEffect::_wallParticleEffect(ISceneManager* smgr, IVideoDriver* driver, vector3df collisionPoint, triangle3df hitTriangle, int timer) : IParticleSystemSceneNode(0, smgr, 1)
{
IParticleEmitter* _em = this->createPointEmitter(hitTriangle.getNormal().setLength(0.15), 9999, 12222, SColor(0,222,222,222), SColor(0,333,333,333), 222, 333, 15, dimension2df(0.f,0.f), dimension2df(1.5f,1.5f));
this->setEmitter(_em);
_em->drop();
/*
IParticleAffector* paf = this->createFadeOutParticleAffector();
IParticleAffector* gaf = this->createGravityAffector(vector3df(0.0f,-0.1f, 0.0f));
this->addAffector(paf);
this->addAffector(gaf);
paf->drop();
gaf->drop();
*/
this->setPosition(collisionPoint);
this->setScale(vector3df(2,2,2));
this->setMaterialFlag(EMF_LIGHTING, false);
this->setMaterialTexture(0, driver->getTexture("particles/wallDust.bmp"));
this->setMaterialType(EMT_TRANSPARENT_VERTEX_ALPHA);
_timeToDie = timer + 200;
}
i get errors in the lines "IParticleEmitter* _em....." and "this->setEmitter(_em);". The errors are "undefined reference to 'irr::scene.....". What am i doing wrong?
________
Dc Medical Marijuana