SetParticle size deprecated use setMinStartsize/setMinStartS

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
chaiein
Posts: 30
Joined: Wed Apr 11, 2012 6:51 am

SetParticle size deprecated use setMinStartsize/setMinStartS

Post by chaiein »

Code: Select all

 
pas->setParticleSize(core::dimension2d<f32>(5.0f,5.0f));
scene::IParticleEmitter* em = pas->createBoxEmitter(core::aabbox3d<f32>(-5,-5,-5,5,5,5),Impacts[i].outVector, 20,40, video::SColor(0,255,255,255),video::SColor(0,255,255,255),120,120,0,core::dimension2df(5.0,5.0),core::dimension2df(5.0,5.0));
I get following lines in console window

"setParticleSize is deprecated, use setMinStartSize/setMinStartSize in emitter"
and then creates em.

Why do i get this message on console window and what should be my changes in the above code
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: SetParticle size deprecated use setMinStartsize/setMinSt

Post by hybrid »

I think you can simply remove the line with setParticeSize. This is handled by the emitter as last parameters.
chaiein
Posts: 30
Joined: Wed Apr 11, 2012 6:51 am

Re: SetParticle size deprecated use setMinStartsize/setMinSt

Post by chaiein »

ya that works to remove that lines Thank you :)
Post Reply