-
Notifications
You must be signed in to change notification settings - Fork 23
Ball Path Prediction
Tyler edited this page Sep 22, 2019
·
3 revisions
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
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