contacts

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

Marks, from DebugView.EVERYTHING up, every particle of world that touched something during the last step: a dot where it touched, and a short line along the normal it was pushed out by, in yellow on a floor and cyan on anything else. Every rigid body's velocity, as a line to where it will be in a tenth of a second. And every rigid contact the same way, a line the way it pushes the first body: green where friction holds it, orange where it slides, dim where it was found near but didn't push.