|
|
@ -33,11 +33,11 @@ class SlingShot extends BodyComponent {
|
|
|
|
final triangle = PolygonShape()..set(triangleVertices);
|
|
|
|
final triangle = PolygonShape()..set(triangleVertices);
|
|
|
|
fixtures.add(FixtureDef(triangle));
|
|
|
|
fixtures.add(FixtureDef(triangle));
|
|
|
|
|
|
|
|
|
|
|
|
final kickerVertices = [
|
|
|
|
final kicker = EdgeShape()
|
|
|
|
triangleVertices.first,
|
|
|
|
..set(
|
|
|
|
triangleVertices.last,
|
|
|
|
triangleVertices.first,
|
|
|
|
];
|
|
|
|
triangleVertices.last,
|
|
|
|
final kicker = PolygonShape()..set(kickerVertices);
|
|
|
|
);
|
|
|
|
final kickerFixtureDef = FixtureDef(kicker)..restitution = 2.0;
|
|
|
|
final kickerFixtureDef = FixtureDef(kicker)..restitution = 2.0;
|
|
|
|
fixtures.add(kickerFixtureDef);
|
|
|
|
fixtures.add(kickerFixtureDef);
|
|
|
|
|
|
|
|
|
|
|
|