Chapter 3 · Modifier Properties

3.16Tnpix_Soft_Body

Panel name Tnpix Soft Body · also reachable as TnpixSoftBody

Experimental. Turns a closed object into soft flesh, solved in the Solver's own steps; with fibres, a simple muscle. Only activation and tensionPoint take keys. Setting material to 0 - 3 writes that material's numbers, as the panel does.

PropertyTypeADefaultRangeDescription
tnEnabledbooleantrueOn/off. Off, the object simulates as cloth.
softChannelstring""The painted channel this Soft Body's material covers; "" = the whole object, which lets no pin's point go. Above a Tnpix_Pin or Tnpix_Preserve on the stack, its painted points are let go from them. The panel's Region list writes it.
keepVolumebooleantruetrue = it keeps its volume as it wobbles; false = it squashes like a sponge.
resolutioninteger408 – 200Tetrahedra across the object's longest side. Several Soft Bodies on one object: the finest wins.
materialinteger10 Fat, 1 Jelly, 2 Muscle, 3 Rubber, 4 Custom. 0 - 3 write that material's numbers; a number changed afterwards makes it 4.
stiffnessfloat5.00.01 – 100,000How firm it is, in kPa: fat 1.5, jelly 5, relaxed muscle 10, rubber 500.
densityfloat1.020.01 – 20.0How heavy it is for its size, g/cm3 (water is 1).
dampingfloat0.080.0 – 1.0How fast its wobble dies: 0 never, 1 settles without a wobble.
fibresbooleanfalsetrue = fibres along the fibre line that pull when it is activated.
fibreStartnodeundefinedThe object at the fibre line's start. With fibreEnd both undefined, the line runs along the object's own length; set both or neither. The soft body itself is refused.
fibreEndnodeundefinedThe object at the fibre line's end (see fibreStart).
strengthfloat300.00.0 – 100,000How hard the fibres pull at full activation, kPa.
maxContractionfloat45.00.0 – 90.0How short the fibres can get at full activation, percent of their length.
tendonsfloat10.00.0 – 45.0How much of each end is tendon, percent of the fibre line.
tendonStiffnessfloat30.01.0 – 1000.0How many times stiffer the tendons are than the body.
activationfloatA0.00.0 – 1.0How hard the fibres work, 0 to 1. Key it to flex the muscle.
autoTensionbooleantruetrue = the fibres tense by themselves as the fibre line's ends come closer.
tonefloat5.00.0 – 50.0Auto tension: the tension it keeps, percent.
tensionPointfloatA0.50.0 – 1.0Where along the fibre line it tenses most, and bulges: 0 at its start, 1 at its end.
tensionSpreadfloat0.20.0 – 1.0How wide the tense area is, as a share of the fibre line; 0 = the whole body evenly.
junctionfloat0.10.001 – 0.45The share of the fibre line over which a tendon turns into the body. No panel control.
relaxedFibrefloat0.050.0 – 1.0A relaxed body's own fibres against stretch past their rest, as a share of the fibres' stiffness. No panel control.