constraints

fun constraints(canvas: Canvas, world: PhysicsWorld)(source)

Draws every constraint of world from DebugView.CONSTRAINTS up, coloured by its stress, from blue squeezed through grey at rest to red stretched: a link along its length, a pin as a line to the point it holds, an attachment as a line to its point on its rigid body, a joint as a dot on its anchor (a line to its other end for a distance joint), a bend as a dot on its middle particle, an area as a dot in its middle.