Skip to content

Ball Path Prediction

Tyler edited this page Sep 22, 2019 · 3 revisions

About

This feature gives you the predicted ball path. For more details, see the main wiki at https://github.com/RLBot/RLBot/wiki/Ball-Path-Prediction

Example

try {
    final BallPrediction ballPrediction = RLBotDll.getBallPrediction();

    rlbot.flat.Vector3 location = ballPrediction.slices(ballPrediction.slicesLength() / 2).physics().location();
    renderer.drawLine3d(Color.CYAN, input.ball.position, new rlbotexample.vector.Vector3(location));

} catch (RLBotInterfaceException e) {
    // Ignore
}

For more context, see https://github.com/RLBot/RLBot/blob/master/src/test/java/rlbot/SampleBot.java

Clone this wiki locally