double physics_fixture_get_inertia(int id) { get_fixturer(sb2dfixture, id, -1); b2MassData lMassData; sb2dfixture->body->GetMassData(&lMassData); return lMassData.I; }
double physics_fixture_get_center_y(int id) { get_fixturer(sb2dfixture, id, -1); b2MassData lMassData; sb2dfixture->body->GetMassData(&lMassData); return lMassData.center.y; }
double physics_fixture_get_y(int id) { get_fixturer(sb2dfixture, id, -1); return sb2dfixture->body->GetPosition().y; }
double physics_fixture_get_angle(int id) { get_fixturer(sb2dfixture, id, -1); return -cs_angle_from_radians(sb2dfixture->body->GetAngle()); }
int b2d_fixture_get_body(int id) { get_fixturer(b2dfixture, id, -1); return b2dfixture->bodyid; }
int b2d_fixture_get_shape(int id) { get_fixturer(b2dfixture, id, -1); return b2dfixture->shapeid; }