|
|
@ -297,7 +297,7 @@ class SpaceshipWall extends BodyComponent with InitialPosition {
|
|
|
|
class SpaceshipEntranceBallContactCallback
|
|
|
|
class SpaceshipEntranceBallContactCallback
|
|
|
|
extends ContactCallback<SpaceshipEntrance, Ball> {
|
|
|
|
extends ContactCallback<SpaceshipEntrance, Ball> {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void begin(SpaceshipEntrance entrance, Ball ball, Contact contact) {
|
|
|
|
void begin(SpaceshipEntrance entrance, Ball ball, _) {
|
|
|
|
ball
|
|
|
|
ball
|
|
|
|
..priority = 3
|
|
|
|
..priority = 3
|
|
|
|
..gameRef.reorderChildren();
|
|
|
|
..gameRef.reorderChildren();
|
|
|
@ -318,9 +318,10 @@ class SpaceshipEntranceBallContactCallback
|
|
|
|
class SpaceshipHoleBallContactCallback
|
|
|
|
class SpaceshipHoleBallContactCallback
|
|
|
|
extends ContactCallback<SpaceshipHole, Ball> {
|
|
|
|
extends ContactCallback<SpaceshipHole, Ball> {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void begin(SpaceshipHole hole, Ball ball, Contact contact) {
|
|
|
|
void begin(SpaceshipHole hole, Ball ball, _) {
|
|
|
|
ball.priority = 1;
|
|
|
|
ball
|
|
|
|
ball.gameRef.reorderChildren();
|
|
|
|
..priority = 1
|
|
|
|
|
|
|
|
..gameRef.reorderChildren();
|
|
|
|
|
|
|
|
|
|
|
|
for (final fixture in ball.body.fixtures) {
|
|
|
|
for (final fixture in ball.body.fixtures) {
|
|
|
|
fixture.filterData.categoryBits = 0xFFFF;
|
|
|
|
fixture.filterData.categoryBits = 0xFFFF;
|
|
|
|