Why I have to moltiplicate times 2 * 30 ?

in the hwllo world code there is this thing:

Code:
circleDef = new b2CircleDef();
circleDef.radius = rX;
circleDef.density = 1.0;
circleDef.friction = 0.5;
circleDef.restitution = 0.2
bodyDef.userData = new PhysCircle();
bodyDef.userData.width = rX * 2 * 30;   ????
bodyDef.userData.height = rX * 2 * 30;  ????
body = m_world.CreateBody(bodyDef);
body.CreateShape(circleDef);


if the radius of the circle is equale to rx, why do i have to moltiplicate it * 30 ?
Because the scale of the physical simulation is set to 1/30th the scale of graphical coordinate plane.
is it always 1/30 or only on hello world?
and why is 1/30?
Only on hello world, you can use whatever scale you want.

That is because Box2D uses meters, kilograms, and seconds as its units of measure. If you were to run the physical simulation at full scale with the graphics, then you'd have very large sizes and speeds, which can cause problems.
There's a whole little tutorial about why we use the magic number 30 right here...

http://www.kerp.net/box2d/displaylesson ... 1&lesson=8

It is my totally unbiased opinion that you should check it out!

--T

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