• Advertisement
Sign in to follow this  

what formula ?

This topic is 3591 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

what formula can i use to create a sphere explosion effects using particle systems. Thanks .

Share this post


Link to post
Share on other sites
Advertisement
Not sure what you mean by this, exactly. But I'm assuming the effect you are looking for would be gained by doing something like

- generate a bunch of particles and position them at the center of the explosion.
- give each particle a velocity which can be up to X% different from a base velocity from a velocity you yourself choose. X should be a relatively large number - you want a wide range of random velocities for this to look realistic at all.
- for each particle determine a random direction (could do this by creating a vector with random values and then normalizing the vector.) Then assign the particle the initial movement vector of this direction with the velocity you just found in the previous step.

After that you'll have the particles start moving along the motion vectors you assigned them. If you are in a gravity based environment you will apply gravity to the particles each frame by incrementing the z-component of their motion. And then maybe you'll add code so that the particles bounce off the ground or do whatever it is they need to go.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement