4.5 Kicking

In this example we will opt to perform a medium range kick. This is done by simply choosing 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.


Now we are using Fat-proxy so the kicks look more like this :