fix: removed ghost PlungerAnchor shape

pull/162/head
RuiAlonso 4 years ago
parent 9d2e9dd243
commit a2c55f0f04

@ -136,12 +136,10 @@ class PlungerAnchor extends JointAnchor {
@override
Body createBody() {
final shape = CircleShape()..radius = 0.5;
final fixtureDef = FixtureDef(shape);
final bodyDef = BodyDef()
..position = initialPosition
..type = BodyType.static;
return world.createBody(bodyDef)..createFixture(fixtureDef);
return world.createBody(bodyDef);
}
}

Loading…
Cancel
Save