Chapter 4 · Recipes

4.4Colliders

TnpixTool.colAdd $Shirt $Body       -- as Pick Object: refuses duplicates, non-meshes and the cloth itself
TnpixTool.rows   $Shirt             -- every row with its number and settings
TnpixTool.colSet $Shirt 0 5 0.3     -- row 0, field 5: Thickness, in scene units
TnpixTool.colSet $Shirt 0 11 2      -- row 0, field 11: Override material (0 Off, the default; 1 Unpainted cloth only; 2 Everything)
TnpixTool.colSet $Shirt 0 6 0.5     -- row 0, field 6: Friction (the rows printout's DynSlide); acts only with Override material 1 or 2
TnpixTool.colSet $Shirt 0 8 3.0     -- row 0, field 8: Grip; the same
  • Friction against a body is normally the garment's material (3.7). Use a row's Override material 2 only when this collider must decide whatever the cloth: ice, a sticky surface.
  • The list is group-wide: rows picked on any member of a Solver group are merged.
  • The fields are listed in 7.6. Values outside a setting's range are clamped.
  • Poke-through. The first fix is the row's Thickness (default 0.15 inch in the scene's unit), then the Solver's Substeps.
  • Collision system. The Solver's collisionSystem defaults to 4, Surface (True Geometry), which uses the collider's actual triangles. A Proxy value is greyed under this system.
  • Thin or open colliders. Two-sided mesh (field 1) is for a thin sheet, and Open mesh (field 2) for an open mesh that still has an inside; a new row has both on.
  • Low-polygon facets printing through the cloth: raise Mesh Smooth on the row (field 9) or Mesh contact smoothing on the Solver.
  • An endless floor. Set unlimitedGround = true on the Solver: a floor at Z = 0 with no ground object.