Problem with an explosion animation

Topics: User Forum
Jun 13, 2007 at 5:55 PM
I have an explosion animation exported from Blender that I want to display each time a collision takes between 2 objects. The problem is that only 1-2 really small particles are displayed and they are almost unnoticeable.

Another related problem is that more than one of these explosions can take place at a given point in time and I'm not really sure how to display them correctly. Right now I have an array of bools, each position corresponding to an object that can explode. I also have an array of animation controllers called idle, also corresponding t an object. In the Draw method I have the following code:

for (int i = 0; i < GameConstants.NumUFOs; i++)
if (isExplodingi)
explosionAnimator.World = Matrix.CreateTranslation(ufosi.position);
idlei.IsLooping = false;
isExplodingi = false;
RunController(explosionAnimator, idlei);

Considering this code, will the explosions be displayed correctly? Because if I have 2 explosions happening at the same time, I'm not sure if moving the position of the animator would be the right thing to do. Maybe I need an array of animators too?

Thanks in advance.