Public Group

# what formula ?

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

## Recommended Posts

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

##### Share on other sites
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.

thanks.

• 11
• 19
• 12
• 34
• 9
• ### Forum Statistics

• Total Topics
631398
• Total Posts
2999837
×