From 4744f552f0ddfc19a965224c95599beb6a8bf6c5 Mon Sep 17 00:00:00 2001 From: Rui Miguel Alonso Date: Thu, 7 Apr 2022 19:54:13 +0200 Subject: [PATCH] fix: removed ghost PlungerAnchor shape (#162) --- lib/game/components/plunger.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/game/components/plunger.dart b/lib/game/components/plunger.dart index 1911be02..b8c079b5 100644 --- a/lib/game/components/plunger.dart +++ b/lib/game/components/plunger.dart @@ -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); } }