From 617e82c3e24884764337edbe5e0110d38d231e38 Mon Sep 17 00:00:00 2001 From: Johannes Date: Sun, 13 May 2018 14:43:54 +0200 Subject: [PATCH] Changed laser scan order. --- flappy_main_game/scripts/laser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flappy_main_game/scripts/laser.py b/flappy_main_game/scripts/laser.py index 45e8884..e359aa7 100644 --- a/flappy_main_game/scripts/laser.py +++ b/flappy_main_game/scripts/laser.py @@ -37,7 +37,7 @@ def scan(self,startPoint,bitmap,time): for i in raysToCast: # calc endpoint from angle and range - angle = self.angle_max-(i*self.angle_increment) + angle = self.angle_min+(i*self.angle_increment) endPoint = (int(math.cos(angle)*self.range + startPoint[0]), int(-math.sin(angle)*self.range + startPoint[1])) #endpoint