Drone (actual path)
Reference path
Predicted MPC horizon
Obstacle safety zone
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.
This simulator visualizes Model Predictive Control (MPC) as it actually runs onboard a real quadrotor: instead of committing to one fixed flight plan, the controller repeatedly samples a batch of candidate control sequences over a short prediction horizon, scores each rollout against a reference path and an obstacle, blends them with the sampling-based MPPI update rule, and executes only the first step before replanning from the new state. Watch the translucent predicted horizon bend around the obstacle before the drone itself arrives, and tune the horizon length, sample count and obstacle-avoidance weight to see the classic MPC trade-off between planning quality and computational cost.