Chapter 3 · Modifier Properties

3.6Tnpix_Self_Collision

Panel name Tnpix Self Collision · also reachable as TnpixSelfCollision

Self collision and layers. A new modifier starts switched on. The four member arrays are the storage behind the panel's garment list; keep them the same length and append to them in step.

PropertyTypeADefaultRangeDescription
tnEnabledbooleantrueOn/off. A new modifier starts on; turning it on also turns edgeEdge on.
edgeEdgebooleantrueEdge-edge contacts. Always on under modes 1 and 2.
thicknessfloatA0.15 inch†0.001 – 10.0Self-contact radius in scene units; two layers settle about twice this apart. A new modifier takes 0.15 inch in the scene's unit.
frictionfloatA0.00.0 – 1.0Self-collision friction.
passesinteger101 – 50Relaxation passes per step.
queryDiameterfloat2.01.0 – 4.0Contact search diameter as a multiple of the thickness; never below 1.
samePieceExclusionfloat2.50.5 – 4.0Under exclusion 0 only: the same-piece radius as a multiple of the point spacing.
modeinteger20 – 20 = Basic, 1 = Advanced (Optimized plus collisionSubsteps), 2 = Optimized (Basic plus recovery).
layerOrderingbooleanfalseLayer ordering: the lower layer holds, the upper gives way. Works under every mode.
overrideMaterialFrictionbooleanfalsetrue = this modifier's friction wins over the materials' friction.
layerHoldStrengthfloat4.01.0 – 32.0How firmly the lower layer holds; 1 = no hold.
memberHandlesinteger arrayemptyThe garment list: node handles (obj.inode.handle).
memberLayersinteger arrayemptyLayer per garment, parallel to memberHandles; lower = nearer the body.
memberFrictionsfloat arrayemptyFriction per garment, parallel; −1 = inherit.
memberThicknessesfloat arrayemptyThickness per garment, parallel; −1 = inherit.
exclusioninteger10 – 10 = Rest distance, 1 = Mesh ring.
inelasticContactbooleantruetrue = cloth pressing on cloth stops instead of bouncing (the push goes to positions, not velocity).
collisionSubstepsinteger41 – 16Under mode 1 only: self collision runs this many times per substep, each time on the next part of the substep's motion; the material is not solved again. 1 = exactly Optimized. The other modes ignore it.