Particle.GetEmitter() error , bug ? (SOLVED)

fremen666

08-09-2008 19:14:01

i do something like that:

StarParticle1 = mgr.CreateParticleSystem("Sunpart"+Count+5, "Space/Comet");

try
{
StarParticle1.GetEmitter(0).Direction = new Vector3(Mogre.Math.Sin(random1), 0, Mogre.Math.Cos(random1));
}
catch
{
throw;
}

and i got information that index is out of bound o.O but there is emitter done by .particle file:

Space/Comet
{
material Examples/Flare
particle_width 50
particle_height 50
cull_each false
quota 800
billboard_type point

// Area emitter
emitter HollowEllipsoid
{
angle 70
emission_rate 20
time_to_live_min 2
time_to_live_max 2
direction 0 1 0
velocity 100
colour_range_start 0.30 0.30 0.05
colour_range_end 0.9 0.2 0.1
width 20
height 20
depth 20
inner_width 0.9
inner_height 0.9
inner_depth 0.9
}

// Fader
affector ColourFader
{
red -0.010
green -0.025
blue -0.025
}
}

HELP i need that ;P

EDIT : the old version of mogre had that bug i think .. now its ok