Skip to content

Commit

Permalink
Update bot.py (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketeeroof authored Nov 21, 2022
1 parent f806f5f commit 885fa74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RLBotPack/Noob_Bot/src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def attack():
# Target
target_ball = predict_ball(earliest_intersection)
target_location = Vec3(target_ball.physics.location)
target_location = target_location + (target_location - send_location) / (target_location - send_location).length() * 92.75
target_location = target_location + (target_location - send_location) / (target_location - send_location).length() * (92.75 + 42.1)
# Smoother wall transitions
target_location = move_target_for_walls(car_location, target_location)
jumping = jump_ready((target_location - distance_from_surface(target_location)).length())
Expand Down

0 comments on commit 885fa74

Please sign in to comment.