Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Particle Editor Help Random directions for FixedAxis particles?
MyRedNeptune Offline
Senior Member

Posts: 553
Threads: 3
Joined: May 2012
Reputation: 33
#1
Random directions for FixedAxis particles?

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?

^(;,;)^
11-25-2012, 08:02 PM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: Random directions for FixedAxis particles?

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: (Select All)
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


(This post was last modified: 11-25-2012, 10:04 PM by palistov.)
11-25-2012, 10:03 PM
Find
MyRedNeptune Offline
Senior Member

Posts: 553
Threads: 3
Joined: May 2012
Reputation: 33
#3
RE: Random directions for FixedAxis particles?

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

^(;,;)^
11-25-2012, 10:37 PM
Find




Users browsing this thread: 1 Guest(s)