From a11fe04cb16835b72060c7e4519432928d00e263 Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Fri, 29 Dec 2023 19:01:37 +0100 Subject: [PATCH] Improved some details. --- physics/parabelfunc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/physics/parabelfunc.py b/physics/parabelfunc.py index 5cafa06..9c5aa4c 100755 --- a/physics/parabelfunc.py +++ b/physics/parabelfunc.py @@ -43,8 +43,12 @@ def berechneflugbahn(cow, xmin, xmax, ymin, ymax, startwinkel, startgeschwindigk if y <= ymax and y >= ymin: # Stash away the coordinates into scala, which will be returned scala += [x, int((y * 100 + 50) / 100)] + + elif y <= ymin: + scala += [x, ymin] + else: - scala += [0, 0] + scala += [x, ymax] xold = x