From 28804b822587efefa4b5f5574151487bc0d8c9ec Mon Sep 17 00:00:00 2001 From: RuiAlonso Date: Mon, 28 Mar 2022 09:36:54 +0200 Subject: [PATCH] chore: renamed straight path vars --- lib/game/components/launcher_ramp.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/game/components/launcher_ramp.dart b/lib/game/components/launcher_ramp.dart index 35f6e548..5313a2d9 100644 --- a/lib/game/components/launcher_ramp.dart +++ b/lib/game/components/launcher_ramp.dart @@ -66,21 +66,21 @@ class LauncherRamp extends BodyComponent with InitialPosition, Layered { final startPosition = initialPosition + Vector2(0, 3); final endPosition = initialPosition + Vector2(0, 130); - final externalStraightShape = EdgeShape() + final rightStraightShape = EdgeShape() ..set( startPosition..rotate(PinballGame.boardPerspectiveAngle), endPosition..rotate(PinballGame.boardPerspectiveAngle), ); - final externalStraightFixtureDef = FixtureDef(externalStraightShape); - fixturesDef.add(externalStraightFixtureDef); + final rightStraightFixtureDef = FixtureDef(rightStraightShape); + fixturesDef.add(rightStraightFixtureDef); - final internalStraightShape = EdgeShape() + final leftStraightShape = EdgeShape() ..set( startPosition - Vector2(width, 0), endPosition - Vector2(width, 0), ); - final internalStraightFixtureDef = FixtureDef(internalStraightShape); - fixturesDef.add(internalStraightFixtureDef); + final leftStraightFixtureDef = FixtureDef(leftStraightShape); + fixturesDef.add(leftStraightFixtureDef); final externalCurveShape = ArcShape( center: initialPosition + Vector2(-28.2, 132),