Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to move a fluid without a container?
#2
(10-05-2019, 09:28 AM)MokhovDmitry Wrote: Hello again. Can you explain, how I can move the fluid without container-object with ObiColliders as it's done in FaucetAndBucket scene?

As I see, I can move it with the Solver, with enabled "Simulate in Local space", but then all the fluids generated by ObiEmmiter will move. All I want is to move a particular puddle and merge it with other puddles

Add forces/velocities to move your particles around. You can either set their velocities directly (solver.velocities[particleIndex] = whatever) or if you prefer to use forces: solver.externalForces[particleIndex] = your force.

Note that the FaucetAndBucket scene does not do this. The fluid moves because it collides with the bucket, that you're in control of.

Simulating in local space will just perform the simulation using the solver's position/orientation/scale as reference. So if you move the solver, all particles in the simulation will move with it. This is not what you want in your case.
Reply


Messages In This Thread
RE: How to move a fluid without a container? - by josemendez - 10-05-2019, 10:04 AM