engine umschmweißen

This commit is contained in:
Michael S. 2024-01-15 20:38:06 +01:00
parent bc660afdbc
commit d83e2f7232
5 changed files with 97 additions and 108 deletions

View file

@ -37,7 +37,7 @@ def berechneflugbahn(xmax, ymax, steps, startwinkel, startgeschwindigkeit, xmin=
first_run = True
# cowlength is 2, if cow is an UTF8-Icon, otherwise 1
for x in range(xmin, steps - 1, xstep):
for x in range(xmin, steps , xstep):#steps - 1
# the formula, which generates the y position for the corresponding x, shamelessly ripped from some schoolbook and modified.
y = (-(gravitation / (2 * startgeschwindigkeit**2 * cos(startwinkel) ** 2)) * x**2) + (tan(startwinkel) * x + starthoehe)