fix: set limits to plunger compression correctly

pull/145/head
RuiAlonso 4 years ago
parent b83c96d77f
commit 25c85456f1

@ -86,7 +86,9 @@ class Plunger extends BodyComponent with KeyboardHandler, InitialPosition {
anchor: anchor, anchor: anchor,
); );
world.createJoint(PrismaticJoint(jointDef)); world.createJoint(
PrismaticJoint(jointDef)..setLimits(-compressionDistance, 0),
);
} }
@override @override

Loading…
Cancel
Save