Chapter 4 · Recipes
4.10Volume
undo "TenPix: keep the shape" on (
local v = tpaAddBelowSolver $Pillow (Tnpix_Volume())
v.mode = 0 -- 0 Keep volume, 1 Pressure
v.volumeRatio = 1.0 -- 1.3 asks for 30 percent more, if the fabric can stretch that far
v.softness = 0.0 -- higher lets contact squash it and recover over time
)
- Closed meshes. On a whole object the mesh must be closed. Each object needs its own Volume.
- A painted region.
volumeChannelmakes the Volume hold only the painted area of a body, measured against a centre:volumeCentreis a bone or helper inside the region, orundefinedfor the middle of the painted points. - Float.
buoyancy = truewithbuoyancyFill = 1(Fill) andfillInside(0 Helium, 1 Hot air, 2 Air, 3 Water, 4 Custom) rises, floats or sinks as the real thing would. - The fabric's stretch limit caps the inflation. The default fabric encloses about 1.15 times its rest volume at its limit.