private void drawShape (Fixture fixture, Transform transform, Color color) { if (fixture.getType() == Type.Circle) { CircleShape circle = (CircleShape)fixture.getShape(); t.set(circle.getPosition()); if (fixture.getType() == Type.Edge) { EdgeShape edge = (EdgeShape)fixture.getShape(); edge.getVertex1(vertices[0]); if (fixture.getType() == Type.Polygon) { PolygonShape chain = (PolygonShape)fixture.getShape(); int vertexCount = chain.getVertexCount(); if (fixture.getType() == Type.Chain) { ChainShape chain = (ChainShape)fixture.getShape(); int vertexCount = chain.getVertexCount();
private void drawShape (Fixture fixture, Transform transform, Color color) { if (fixture.getType() == Type.Circle) { CircleShape circle = (CircleShape)fixture.getShape(); t.set(circle.getPosition()); if (fixture.getType() == Type.Edge) { EdgeShape edge = (EdgeShape)fixture.getShape(); edge.getVertex1(vertices[0]); if (fixture.getType() == Type.Polygon) { PolygonShape chain = (PolygonShape)fixture.getShape(); int vertexCount = chain.getVertexCount(); if (fixture.getType() == Type.Chain) { ChainShape chain = (ChainShape)fixture.getShape(); int vertexCount = chain.getVertexCount();
private void drawShape (Fixture fixture, Transform transform, Color color) { if (fixture.getType() == Type.Circle) { CircleShape circle = (CircleShape)fixture.getShape(); t.set(circle.getPosition()); if (fixture.getType() == Type.Edge) { EdgeShape edge = (EdgeShape)fixture.getShape(); edge.getVertex1(vertices[0]); if (fixture.getType() == Type.Polygon) { PolygonShape chain = (PolygonShape)fixture.getShape(); int vertexCount = chain.getVertexCount(); if (fixture.getType() == Type.Chain) { ChainShape chain = (ChainShape)fixture.getShape(); int vertexCount = chain.getVertexCount();