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
Great work on this particle system, it is the best.
If I add RandomRotateLocal, my particles disappear. I tried many different values for param["RandomRotateLocal"] but I don't see the particles.
I have very simple Plane particles for testing. I would like these particles to start at different x, y, z rotations.
It is based on your "fire example":
var material:ParticleColorMaterial = new ParticleColorMaterial();
var planeGeo:PlaneGeometry = new PlaneGeometry(30, 20,1,1,false,true);
var planeGeo2:PlaneGeometry = new PlaneGeometry(15, 10,1,1,true,true);
sample1 = new ParticleSample(planeGeo.subGeometries[0], material);
sample2 = new ParticleSample(planeGeo2.subGeometries[0], material);
//step 2:we create a generater which will group the samples.
var generater:MutiWeightGenerater = new MutiWeightGenerater([sample1, sample2], [5, 1], 1000);
//step 3: we create a container and set some attributes.
particle = new ParticlesContainer();
particle.loop = true;
particle.hasDuringTime = true;
var action5:RandomRotateLocal = new RandomRotateLocal();
particle.addAction(action5);
The text was updated successfully, but these errors were encountered:
Thank you for you reply, I found my problem: The param["RendomRotateLocal"] need a vector with 4 arguments (x,y,z,w) I only gave it 3 (x,y,z) it works now. thanks!
Hi Liao,
Great work on this particle system, it is the best.
If I add RandomRotateLocal, my particles disappear. I tried many different values for param["RandomRotateLocal"] but I don't see the particles.
I have very simple Plane particles for testing. I would like these particles to start at different x, y, z rotations.
It is based on your "fire example":
var material:ParticleColorMaterial = new ParticleColorMaterial();
The text was updated successfully, but these errors were encountered: