debugWarnedAboutBodyScale property

  1. @visibleForTesting
bool debugWarnedAboutBodyScale
getter/setter pair

Whether the debug-mode warning about a body being too small for Forge2D's tolerances has already been reported.

A world that is laid out at the wrong scale has that problem everywhere, so the warning is only worth printing once. Reset it to warn again.

Implementation

@visibleForTesting
static bool debugWarnedAboutBodyScale = false;