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