fix: removed ghost PlungerAnchor shape (#162)

pull/163/head
Rui Miguel Alonso 3 years ago committed by GitHub
parent 9d2e9dd243
commit 4744f552f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save