Box2D is an open-source, high-performance 2D physics engine designed for games and interactive simulations. Written in portable C17, it simulates rigid bodies, collisions, gravity, and physical constraints. The engine supports circles, capsules, polygons, rounded shapes, segments, and connected chains. Continuous collision detection improves accuracy when objects move or rotate rapidly. Developers can construct mechanical systems using revolute, prismatic, distance, motor, weld, and wheel joints. Its Soft Step solver, multithreading, and SIMD optimizations efficiently handle complex scenes containing many objects. Additional capabilities include character movement, collision queries, sensors, deterministic simulation, and state restoration. Interactive examples help developers explore its physics behavior.

Features

  • High-Performance 2D Rigid Body Simulation
  • Continuous Collision Detection and Contact Events
  • Multiple Collision Shapes and Spatial Queries
  • Configurable Physics Joints and Motors
  • Multithreaded and SIMD-Optimized Execution
  • Deterministic Simulation and State Snapshots

Project Samples

Project Activity

See All Activity >

Categories

Physics

License

MIT License

Follow Box2D

Box2D Web Site

Other Useful Business Software
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Box2D!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C

Related Categories

C Physics Software

Registered

5 days ago