-
Notifications
You must be signed in to change notification settings - Fork 4
Routines
Double jumps then boosts up into the air on a flight path towards intercept_time
and hits it towards the target. If no target is defined, then the bot will just hit the ball.
Can hit the ball above 300uus.
Uses a lot of boost. Depending on the situation, it can hit the ball very hard. Fairly accurate, but it might hit the ball a little higher than expected.
-
intercept_time
- A number. -
targets
- A tuple ofVector
s that are the left-most target and the right-most target. If no target is given, then it will hit the ball straight. -
fast_aerial
- A boolean. WhenTrue
, a double jump will be performed to takeoff. WhenFalse
, the dodge is saved for when the bot nears the ball.
This updates the current shot with new target location information.
shot
- An instance of Aerial
Uses both the initial jump and the dodge to gain height, then hits the ball at intercept_time
towards the target. If no target is defined, then the bot will just hit the ball.
Can hit the ball when it's between 250uus and 551uus.
Uses a modest amount of boost, but boost isn't required. When available, it will use it to get to the ball faster and hit it harder. Can't hit the ball very hard. Isn't very accurate.
-
intercept_time
- A number. -
targets
- A tuple ofVector
s that are the left-most target and the right-most target. If no target is given, then it will hit the ball straight.
This updates the current shot with new target location information.
shot
- An instance of double_jump
Uses the initial jump to gain height (if needed) then uses it's dodge to hit the ball with power in a certain direction at intercept_time
towards targets
. If no target is defined, then the bot will just hit the ball.
Can hit the ball from the ground up to 300uus, and can hit the ball while driving backwards.
Uses a modest amount of boost, but boost isn't required. When available, it will use it to get to the ball faster. Will hit the ball very hard, if given the opportunity. Extremely accurate, when given enough time.
-
intercept_time
- A number. -
targets
- A tuple ofVector
s that are the left-most target and the right-most target. If no target is given, then it will hit the ball straight.
This updates the current shot with new target location information.
Drives at the ball and hits it. It doesn't get any simpler! This routine is much more reliable than short_shot
.
-
intercept_time
- A number. -
targets
- A tuple ofVector
s that are the left-most target and the right-most target. If no target is given, then it will hit the ball straight.
This updates the current shot with new target location information.
shot
- An instance of jump_shot
Uses flips, boost and throttle to driving at the ball and hit it. Estimates a intercept location on it's own, and it will climb walls to reach the ball.
It can only hit the ball when it's very close to the ground.
Uses a modest amount of boost, but boost isn't required. When available, it will use it to get to the ball faster. Will hit the ball semi-hard if it's lucky. If it's on the right side of the ball, it's kind of accurate.
-
target
- A tuple ofVector
s that are the left-most target and the right-most target.
Removed. Use short_shot
instead.
Goes towards the stationary target
, and tries to face vector
. Brakes to slow down the bot right on the location, if brake
is True
.
-
target
- AVector
. -
vector
- AVector
. IfNone
, then the bot will just go towardstarget
. -
brake
- A boolean. IfTrue
, it will do a bit of math to determine the exact point to start braking that will have the bot stop extremely close totarget
. -
slow
- A boolean. IfTrue
, it forces the car to slow down a bit when it gets close totarget
.
Brings the bot back to it's goal. If there's more than 1 bot on it's team, it will compensate.
Returns whether or not the routine will pop as soon as it's put in the stack.
-
agent
- An instance of VirxERLU. If you're running this from an instance of VirxERLU, pass inself
.
If used in the offensive zone, it puts the bot in the ideal position to put the ball into the goal.
If used in the defensive zone, it puts the bot in the ideal position to prevent the ball from going into the goal.
Returns whether or not the routine will pop as soon as it's put in the stack.
-
agent
- An instance of VirxERLU. If you're running this from an instance of VirxERLU, pass inself
.
Uses goto
's pathfinding, but has a few extra triggers related to boost pads.
Drives at the ball with a full throttle while boosting. Flips into it when it gets close. Pops after 3 seconds.
Does a wave dash towards direction of target. If a target isn't specified, it will default to a forwards wave dash.
Diagonal wave dashes aren't supported.
target
- A Vector
in local coordinates to wave dash towards. See local_location
under car_object
in util/agent.py
.
Flips towards vector
.
-
vector
- AVector
in local coordinates to flip towards. Seelocal_location
undercar_object
inutil/agent.py
. -
cancel
- Causes the flip to cancel halfway through. This can be used to do a half-flip. Default isFalse
.
Has the bot jump and face target
, or the ball if ball
is True
.
You only need to define target
or set ball
to True
.
-
target
- AVector
. -
ball
- A boolean.
Faces down (but slightly towards the ball) and boosts.
Uses recovery, but has it face the ball instead of a static target.
Orients the bot for a clean landing on the ground or the ceiling, and facing target
.
-
target
- AVector
. If not defined, then the bot will simply right itself. Default isNone
.
Applies a throttle in the opposite direction of the car's forward velocity.