Frictional Games Forum (read-only)

Full Version: Random directions for FixedAxis particles?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The title is pretty self-explanatory. The FixedAxis setting aligns all particles in the same direction, but I would like my particles to face random directions. Is it possible to do that?
Yeah, but you need to rotate the areas at which you spawn the particles at.

For an area named something like ParticleArea instead create X number of areas, index them ParticleArea_1, ParticleArea_2, ..., ParticleArea_X and then in your script spawn it randomly with something like this:

PHP Code:
const int X 5// 5 different directions
void SpawnParticle() {
  
int i RandInt(1X);
  
string area "ParticleArea_"+i;
  
// Create particle system here, I can't remember the function off the top of my head
  // Just use the local 'area' variable

I see, so I have to do it that way after all. I was hoping there'd just be a check box to tick somewhere. Tongue

Thanks! Big Grin