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