shaym
16-10-2011 16:16:57
Hi all,
I'm a newbie to MOGRE and I'm having some troubles with creating a particle system.
My code is as follows:
When I run this code I get an exception on the 2nd line of code, which is:
What am I doing wrong? Can anyone please help?
Thanks
I'm a newbie to MOGRE and I'm having some troubles with creating a particle system.
My code is as follows:
ParticleSystem particles = sceneManager.CreateParticleSystem("Particles");
ParticleEmitter emitter = particles.AddEmitter("Point");
emitter.SetTimeToLive(5.0f, 5.0f);
emitter.SetParticleVelocity(5.0f, 5.0f);
emitter.SetColour(ColourValue.Red, ColourValue.Green);
emitter.Position = zNode.Position;
emitter.Direction = Vector3.NEGATIVE_UNIT_Y;
When I run this code I get an exception on the 2nd line of code, which is:
A first chance exception of type 'System.Runtime.InteropServices.SEHException' occurred in Mogre.dll
Additional information: External component has thrown an exception.
What am I doing wrong? Can anyone please help?
Thanks