Units

Hello,

I was just wondering how do you determine what scale JBox2D is using for units. I am working on an application right now that requires input of specific numbers for units. So I would like to know what scale the engine is using.

Thanks.
Technically the engine is unitless; however, there are a few absolute tuning constants that are set, and based on the values of these, it's most comfortable to consider the units to be meters, kg, and seconds (like you usually would in normal human-scale classical physics). If you need drastically different units, you can reinterpret the units however you want, but you'll probably need to change the tuning constants (in Settings.java), and be aware that numerical precision issues may come up with very large or very small objects.
Thanks so much, this really helped a lot.

Original thread: https://box2d.org/forum/viewtopic.php?t=5272