Skip to content

Ball Path Prediction

Tyler edited this page Sep 3, 2018 · 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();

    Vector3 location = ballPrediction.slices(ballPrediction.slicesLength() / 2).physics().location();
    renderer.drawLine3d(Color.CYAN, input.ball.position, rlbot.vec.Vector3.fromFlatbuffer(location));

} catch (IOException e) {
    // Ignore
}

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

Clone this wiki locally