The Phaser Studio team is thrilled to announce the release of Phaser Box2D, the ultimate 2D physics engine for creating realistic, physics-driven games for your browser. Whether you’re building fast-paced shooters, intricate puzzle games, or sprawling RPGs, Phaser Box2D is here to take your creations to the next level.
What Makes Phaser Box2D So Awesome?
Phaser Box2D is powered by the latest version of Box2D, a cutting-edge physics engine designed for accuracy and performance. We’ve painstakingly converted the Box2D v3.0 API, written in C, to modern JavaScript, making Phaser Box2D the only v3 port available for the web. We’ve optimized it specifically for browsers, so it’s fast, powerful, and ridiculously easy to integrate with all modern web stacks.
It's also open source and released under the MIT license, so you're free to use Phaser Box2D in your games and applications. Phaser Pro and Enterprise customers can also benefit from priority technical support from the team that created it.
Performance That Speaks for Itself
No one likes laggy physics or buggy collisions, and with Phaser Box2D, you won’t have to deal with either. Thanks to a fancy new Soft Step Rigid Body Solver, your physics will stay stable and smooth—even with fast-moving objects or crazy stacks of bodies. Plus, its island-based sleep management keeps things efficient by letting inactive objects and your processor take a break.
Pinpoint Accuracy
Have you ever had a bullet magically phase through a wall? Not with Continuous Collision Detection (CCD). Whether it’s high-speed objects, tricky AI behaviors, or complex aiming mechanics, Phaser Box2D makes sure everything behaves exactly how you expect.
Easy Integration
We’ve kept it simple. Phaser Box2D works right out of the box as an ES Module. It’s also tiny — just 65KB when zipped — so it’s perfect for web games and playable ads. And for those of you who’ve used Box2D before, good news: we kept the original C API function names, so you’ll feel right at home. The added benefit of this approach is that if Box2D is new to you, you can rely on its rich 18-year history to learn it faster because tools like ChatGPT and Cursor understand its C API well.
Packed with Features You’ll Love
- Shapes, Shapes, and More Shapes: From circles to chains to rounded polygons, create the environments and characters of your dreams.
- Composite Bodies: Combine shapes for vehicles, ragdolls, or even funky robots with multiple collision parts.
- Versatile Joints: Build swinging doors, working pistons, or even car suspensions—if you can dream it, you can make it.
- Smooth Physics: Speculative collisions and continuous motion handling keep everything looking and feeling real.
Hands-On Fun with 50+ Examples
We’ve included over 50 examples to get you up and running in no time. From mini-games to single-feature demos, you’ll have everything you need to get inspired and start building.
Made for Phaser, Open to Everyone
Of course, Phaser Box2D works beautifully with the Phaser game framework (thanks to our handy plugin), but you don’t have to use Phaser. It plays nicely with any web game framework or application, making it a great choice no matter what you’re building with.
Even the Phaser integration is entirely optional. We have been careful not to deeply tie the two together, instead opting to provide a thin layer of helper functions between the two. This makes it easy for you to roll your own fully custom integration without needing to unpick lots of legacy code. Or you can use the handy functions we created! Either is OK with us.
Let’s Build Something Amazing
Phaser Box2D is here to help you create incredible, physics-driven games that wow your players. Whether you’re an indie creator or a pro studio, this is the tool to bring your ideas to life.
Ready to get started? Let’s make some magic together!