19-02-2019, 11:48 AM
(19-02-2019, 09:26 AM)Richard Wrote: I cannot image how to do. What if I move some of particles to X axis and then Z axis?
Hi,
Particle positions use the standard Unity Vector4 datatype. So to set the X value and the Z value, you simply pass them to the constructor as you normally would.
Code:
solver.positions[index] = new Vector4(x,y,z,0);
Please refer to Unity's documentation for more info how to use the Vector4 class.