engine umschmweißen
This commit is contained in:
parent
bc660afdbc
commit
d83e2f7232
5 changed files with 97 additions and 108 deletions
Binary file not shown.
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue