39404142434445464748
fixtureDef.shape = circle; fixtureDef.density = 0.2f; fixtureDef.friction = 0.4f; fixtureDef.restitution = 0.67f; Fixture fixture = unit.getBody().createFixture(fixtureDef); circle.dispose(); }
587588589590591592593594595596
def.type = type; Body box = world.createBody(def); CircleShape poly = new CircleShape(); poly.setRadius(radius); Fixture fix = box.createFixture(poly, density); poly.dispose(); return box; }
1137113811391140114111421143114411451146
def.linearDamping = 5; Body box = world.createBody(def); CircleShape poly = new CircleShape(); poly.setRadius(radius); Fixture fix = box.createFixture(poly, density); poly.dispose(); return box; }
1189119011911192119311941195119611971198