|
|
@ -53,9 +53,16 @@ class FlapperEntrance extends BodyComponent with InitialPosition, Layered {
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Body createBody() {
|
|
|
|
Body createBody() {
|
|
|
|
final shape = EdgeShape()..set(Vector2.zero(), Vector2(0, 3.2));
|
|
|
|
final shape = EdgeShape()
|
|
|
|
final fixtureDef = FixtureDef(shape, isSensor: true);
|
|
|
|
..set(
|
|
|
|
final bodyDef = BodyDef(position: initialPosition, userData: this);
|
|
|
|
Vector2.zero(),
|
|
|
|
|
|
|
|
Vector2(0, 3.2),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
final fixtureDef = FixtureDef(
|
|
|
|
|
|
|
|
shape,
|
|
|
|
|
|
|
|
isSensor: true,
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
final bodyDef = BodyDef(position: initialPosition);
|
|
|
|
return world.createBody(bodyDef)..createFixture(fixtureDef);
|
|
|
|
return world.createBody(bodyDef)..createFixture(fixtureDef);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|