Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to put the water into the cup beforehand
#4
(10-01-2021, 02:56 AM)TheFlyHawk Wrote: I didn't achieve it

Can you record the current state, and then load it next time

You can store all particle positions in a blueprint and then load them, using emitter.SaveStateToBlueprint() and emitter.LoadBlueprint(). However this can result in pressure spikes in the case of fluids, as fluid density is not guaranteed to be equal to rest density at startup.

Using ObiEmitterShapeMesh.cs (VoxelMesh component) and burst emission mode is both simpler and more robust. Here's a beaker mesh starting out filled with particles (I used a slightly smaller version of the beaker mesh to generate the particles inside of it):

[Image: A41XHsE.png]
Reply


Messages In This Thread
RE: How to put the water into the cup beforehand - by josemendez - 11-01-2021, 10:21 AM