projectile parabolas
master
unknown 2015-10-10 01:15:39 -07:00
parent 723e3c4845
commit d4608d8f39
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def make_throw(starting_x, starting_y, starting_velocity, thrown_angle):
y = 1
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:
y = throw['parabola'](x) + starting_y
if y < 0: