in the hwllo world code there is this thing:
if the radius of the circle is equale to rx, why do i have to moltiplicate it * 30 ?
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);
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 ?