Original Post
Hi guys!
I'm looking for the formula for a spherical explosion (particles expanding like a sphere). I'm currently using:
public void pickDirection()
{
float angle = random(0, MathHelper.TwoPi);
float zAngle = random(-MathHelper.PiOver2, MathHelper.PiOver2);
return new Vector3((float)Math.Cos(angle), (float)Math.Sin(angle), (float)Math.Tan(zAngle));
}
I know this isn't right since the explosion isn't spherical... :(
Help?
Thank you!
-TS...
I'm looking for the formula for a spherical explosion (particles expanding like a sphere). I'm currently using:
public void pickDirection()
{
float angle = random(0, MathHelper.TwoPi);
float zAngle = random(-MathHelper.PiOver2, MathHelper.PiOver2);
return new Vector3((float)Math.Cos(angle), (float)Math.Sin(angle), (float)Math.Tan(zAngle));
}
I know this isn't right since the explosion isn't spherical... :(
Help?
Thank you!
-TS...