for (Body b = m_bodyList; b != null; b = b.getNext()) { xf.set(b.getTransform()); for (Fixture f = b.getFixtureList(); f != null; f = f.getNext()) { if (b.isActive() == false) { color.set(0.5f, 0.5f, 0.3f); for (Fixture f = b.getFixtureList(); f != null; f = f.getNext()) { for (int i = 0; i < f.m_proxyCount; ++i) { FixtureProxy proxy = f.m_proxies[i];
context.translate(center.x, center.y); context.rotate(body.getAngle()); for (Fixture fixture = body.getFixtureList(); fixture != null; fixture = fixture.getNext()) { Shape shape = fixture.getShape(); if (shape.getType() == ShapeType.CIRCLE) {
public void checkOutTheseFixtures(Body body) { for (Fixture fixture = body.getFixtureList(); fixture != null; fixture = fixture.getNext()) { checkOutThisFixture(fixture); } }
Vector2 tmpVector = new Vector2(); Fixture f = body.getFixtureList().get(0); while (f.getBody() != body) { f = f.getNext(); } if (f != null) { PolygonShape shape = (PolygonShape)f.getShape(); // get vertices }
for (Body b = m_bodyList; b != null; b = b.getNext()) { xf.set(b.getTransform()); for (Fixture f = b.getFixtureList(); f != null; f = f.getNext()) { if (b.isActive() == false) { color.set(0.5f, 0.5f, 0.3f); for (Fixture f = b.getFixtureList(); f != null; f = f.getNext()) { for (int i = 0; i < f.m_proxyCount; ++i) { FixtureProxy proxy = f.m_proxies[i];
public void draw(Canvas canvas){ Body body = world.getBodyList(); while(body != null){ Fixture fixture = body.getFixtureList(); while(fixture != null){ ShapeType type = fixture.getType(); if(type == ShapeType.POLYGON){ PolygonShape shape = (PolygonShape)fixture.getShape(); // draw shape }else if(type == ShapeType.CIRCLE){ CircleShape shape = (CircleShape)fixture.getShape(); // draw shape } fixture = fixture.getNext(); } body = body.getNext(); } }
.isAwake()); theFixture = theFixture.getNext();
for (Body b = m_bodyList; b != null; b = b.getNext()) { xf.set(b.getTransform()); for (Fixture f = b.getFixtureList(); f != null; f = f.getNext()) { if (b.isActive() == false) { color.set(0.5f, 0.5f, 0.3f); for (Fixture f = b.getFixtureList(); f != null; f = f.getNext()) { for (int i = 0; i < f.m_proxyCount; ++i) { FixtureProxy proxy = f.m_proxies[i];
for (Body b = m_bodyList; b != null; b = b.getNext()) { xf.set(b.getTransform()); for (Fixture f = b.getFixtureList(); f != null; f = f.getNext()) { if (b.isActive() == false) { color.set(0.5f, 0.5f, 0.3f); for (Fixture f = b.getFixtureList(); f != null; f = f.getNext()) { for (int i = 0; i < f.m_proxyCount; ++i) { FixtureProxy proxy = f.m_proxies[i];