29-03-2020, 07:57 PM
(28-03-2020, 10:49 AM)palad333 Wrote: To turn off the liquid I set the speed to 0 and the emitter life set to 0.
To turn on the liquid I set the speed to 2 and the emitter life set to 9999.
so I try to write the user date, but it does not work:
for(int i=0;i<emitter.solverindicies.length;i++)
emitter.solver.userData[emitter.solverIndices[i]] = new Vector4(3, 3, 3, 3);
But, even if I do not change the user date after TurnOn the user date set to NaN
I also the change mass after turning on the emitter:
emitters.solver.invMasses[emitters.solverIndices[index]] = 0;
and after 2 seconds, return the mass to the previous value
after this i try mixing fluid again
I use user data to mix two types of emitters(example lava(user data (9,9,9,9)) and water(user data(1,1,1,1))).
If value of user data=mid (user data 1 and user data 2 )(~5,5,5,5) i,m do something.
Hi,
Setting the inverse mass to zero makes a particle infinitely heavy. For fluid particles, this makes no sense (as a particle with infinite mass, is also infinitely dense). Why do you need this?