From 45dc583c86512ddf524d3157cffe1871f4dc19aa Mon Sep 17 00:00:00 2001 From: RuiAlonso Date: Wed, 9 Mar 2022 17:42:54 +0100 Subject: [PATCH] test: fixed bug with radius in radians :S --- test/game/components/pathway_test.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/game/components/pathway_test.dart b/test/game/components/pathway_test.dart index 7f8357d8..6b11a2b3 100644 --- a/test/game/components/pathway_test.dart +++ b/test/game/components/pathway_test.dart @@ -1,5 +1,6 @@ // ignore_for_file: cascade_invocations, prefer_const_constructors import 'dart:math' as math; +import 'package:flame/input.dart'; import 'package:flame_forge2d/flame_forge2d.dart'; import 'package:flame_test/flame_test.dart'; import 'package:flutter/material.dart'; @@ -153,7 +154,7 @@ void main() { final pathway = Pathway.arc( position: Vector2.zero(), width: width, - radius: math.pi / 2, + radius: 100, angle: math.pi / 2, ); await game.ensureAdd(pathway); @@ -170,7 +171,7 @@ void main() { final pathway = Pathway.arc( position: position, width: width, - radius: math.pi / 2, + radius: 100, angle: math.pi / 2, ); await game.ensureAdd(pathway); @@ -186,7 +187,7 @@ void main() { final pathway = Pathway.arc( position: Vector2.zero(), width: width, - radius: math.pi / 2, + radius: 100, angle: math.pi / 2, ); await game.ensureAdd(pathway);