Any closed object can be used as a container for fluid particles. In order to fill an object's hollow space follow these steps:
- Add a "Fill" emitter and drag the object, meant to be filled, to the emitter's "Body" slot.
- Set the emitter's "Fill Mode" to "Fill non Solid Volume".
- Add "Collision" and "Volume" tags to the object.
- Set Volume" tag > Volume Mode to "Solid Outside".
It also possible to create particles around the object
- Emitter > Emission > Fill Mode > Fill Solid Region.
- To change the size of the volume around the object increase or decrease Volume tag > Surface Offset.
If you want to refine the object's particle representation alter
- Volume tag > Cell size.
- Smaller values create a better representation, but they will also allocate more memory.