Page 1 of 1

[fixed]CParticleSphereEmitter

Posted: Sat Mar 12, 2011 5:29 pm
by tmyke
[Irrlicht v1.8.0]

I do not understand why I had no display when I defined a ParticleSphereEmiter.
In the file CParticleSphereEmitter.cpp, line 62:

Code: Select all

			// Random distance from center
			const f32 distance = os::Randomizer::rand() * Radius;
I think it would rather write:

Code: Select all

			// Random distance from center
			const f32 distance = os::Randomizer::frand() * Radius;
and there it works better. ;)

Posted: Sun Mar 13, 2011 11:46 pm
by hybrid
Yeah, definitely better. Otherwise, the radius becomes really huge...

Posted: Mon Mar 14, 2011 6:56 pm
by tmyke
hybrid wrote:Otherwise, the radius becomes really huge...
yes :)