projectile parabolas
This commit is contained in:
unknown 2015-10-10 01:15:39 -07:00
parent 723e3c4845
commit d4608d8f39

View file

@ -62,7 +62,7 @@ def make_throw(starting_x, starting_y, starting_velocity, thrown_angle):
y = 1 y = 1
x = starting_x x = starting_x
backwards = (thrown_angle in range(90, 270)) or (thrown_angle in range(-90, -270)) backwards = (thrown_angle in range(90, 270)) or (thrown_angle in range(-90, -270, -1))
while y > 0: while y > 0:
y = throw['parabola'](x) + starting_y y = throw['parabola'](x) + starting_y
if y < 0: if y < 0: