Bullets don’t have a brain. Obviously. Which makes this new breakthrough (captured in the video above) so damn impressive.

It’s a bullet developed in part by funds from the Defense Advanced Research Projects Agency (DARPA) that can — ready for this? — change direction in midair.

That’s right.

It’s called the Teledyne Scientific and Imaging’s Extreme Accuracy Tasked Ordnance (EXACTO) program, and it’s designed for long-distance shots attempting to strike a moving target.

One way to make sure you hit that elusive, mobile target? Move along with it. And that’s exactly what this does.

“This live-fire demonstration from a standard rifle showed that EXACTO is able to hit moving and evading targets with extreme accuracy at sniper ranges unachievable with traditional rounds,” wrote Jerome Dunn, a DARPA program manager. “Fitting EXACTO’s guidance capabilities into a small .50-caliber size is a major breakthrough and opens the door to what could be possible in future guided projectiles across all calibers.”

The video demonstration plays out more like a magician’s set in Vegas than a normal, run-of-the-mill scientific experiment. In it, the first seven shots shown are fired by an experienced marksman. The last one is fired by a first-time, novice shooter.

Of course, this isn’t the first time a “magic bullet” has been theorized …