[fixed]CParticleSphereEmitter

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
tmyke
Competition winner
Posts: 22
Joined: Thu Apr 03, 2008 4:43 pm
Location: France

[fixed]CParticleSphereEmitter

Post 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. ;)
Strength and wisdom.
Admin of the http://www.irrlicht.fr and dad of N3xtD.
Sorry for my poor English.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yeah, definitely better. Otherwise, the radius becomes really huge...
tmyke
Competition winner
Posts: 22
Joined: Thu Apr 03, 2008 4:43 pm
Location: France

Post by tmyke »

hybrid wrote:Otherwise, the radius becomes really huge...
yes :)
Strength and wisdom.
Admin of the http://www.irrlicht.fr and dad of N3xtD.
Sorry for my poor English.
Post Reply