12.3 KICK
In this example, instead of dribbling the ball we will opt to perfrom a medium range kick instead. This is done by simply chosing a different const int kickTypeToUse
.
To do this inside selectSkill()
we return the following statement:
return kickBall(KICK_FORWARD, VecPosition(HALF_FIELD_X, 0, 0)); // Basic kick
Here we have once again used the center of the opponets goal as the target position. However, in this case we used KICK_FORWARD
as the kickTypeToUse
. You can also use KICK_IK
as a basic kick behaviour, which has been defined using inverse kinematics.