defaultMetersToPixels constant

double const defaultMetersToPixels

The number of pixels that one meter is rendered as when no other value is given.

A meter of physics world covers a hundred pixels, which puts a human-sized body at a couple of hundred pixels tall and a phone screen at roughly ten meters. Laying a world out so that it fills the screen at this scale lands it in the range that Forge2D is tuned for.

Implementation

static const double defaultMetersToPixels = 100;