You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nasafrasa edited this page Apr 13, 2023
·
2 revisions
Documentation for all functions the ParticleSystem class has.
.push()
Runs the particle system and pushes it to the output difficulty
PS.push()// Adds the particle generator to the map
However in the brackets you can change the property of each particle, this is useful for randomizing the color, scale, rotation, etc. of every particle. Don't touch the definite position of each particle unless you really know what you're doing.
PS.push(particle=>{particle.animate.localRotation=[[rand(0,180),rand(0,180),rand(0,180),0],[rand(0,180),rand(0,180),rand(0,180),1]]})// Randomizes the localRotation of each particle and pushes the particle system to the map