fix: made Ball a bullet

pull/483/head
alestiago 3 years ago
parent 75a5cf7537
commit 98351925de

@ -63,6 +63,7 @@ class Ball extends BodyComponent with Layered, InitialPosition, ZIndex {
position: initialPosition, position: initialPosition,
type: BodyType.dynamic, type: BodyType.dynamic,
userData: this, userData: this,
bullet: true,
); );
return world.createBody(bodyDef)..createFixtureFromShape(shape, 1); return world.createBody(bodyDef)..createFixtureFromShape(shape, 1);

Loading…
Cancel
Save