Home

Awesome

<p align="center"> <img width="128px" src="box2d_icon.svg"/> <h1 align="center">Godot Box2D - UNMAINTAINED</h1> </p>

NOTE

Currently focusing more on the godot rapier physics lib. And since this is pretty much identical in functionality with that one, but, at least at the time of writting, the rapier one has:

If anyone wants to continue on this or contribute, they can make a fork or ask on discord about it.

NOTE

Currently waiting for box2c to be released. New issues won't be fixed until then. In meantime try rapier2d physics engine.

<p align="center"> <a href="https://github.com/appsinacup/godot-box2d/actions/workflows/runner.yml"> <img src="https://github.com/appsinacup/godot-box2d/actions/workflows/runner.yml/badge.svg?branch=main" alt="chat on Discord"></a> <a href="https://github.com/erincatto/box2d" alt="Box2D Version"> <img src="https://img.shields.io/badge/Box2D-v2.4.1-%23478cbf?logoColor=white" /></a> <a href="https://github.com/godotengine/godot-cpp" alt="Godot Version"> <img src="https://img.shields.io/badge/Godot-v4.2-%23478cbf?logo=godot-engine&logoColor=white" /></a> <a href="https://github.com/appsinacup/godot-box2d/graphs/contributors" alt="Contributors"> <img src="https://img.shields.io/github/contributors/appsinacup/godot-box2d" /></a> <a href="https://github.com/appsinacup/godot-box2d/pulse" alt="Activity"> <img src="https://img.shields.io/github/commit-activity/m/appsinacup/godot-box2d" /></a> <a href="https://discord.gg/56dMud8HYn"> <img src="https://img.shields.io/discord/1138836561102897172?logo=discord" alt="Chat on Discord"></a> </p> <p align="center"> <img src="stability-comparison.gif"/> </p>

A Box2D physics server for Godot Engine, implemented as a GDExtension.

Table of Contents

  1. Limitations
  2. Differences
  3. Supported Platforms
  4. Installation
  5. Features
  6. Comparison
  7. License

Limitations

Differences

Supported Platforms

Curently the Godot Box2d addon builds for:

Installation

After installing, go to Advanced Settings -> Physics -> 2D. Change Physics Engine to Box2D.

Video Tutorial:

Tutorial

Features

Improved stability

Determinism

Box2D is binary deterministic. Godot Box2D should also be binary deterministic, however no such tests were run yet. The newest version of Box2D, v3, will also support cross determinism. When that is done, will also add it here.

Comparison

Watch a comparison to Godot Physics 2D and Rapier 2D physics plugin:

Comparison

Or read about it on appsinacup.com/godot-physics-vs-box2d-vs-rapier2d

License

The Box2D library is developed and maintained by Erin Catto and is provided under the MIT license.

All code in this repository is provided under the MIT license. See LICENSE for more details and THIRDPARTY for third-party licenses.

Based on rburing/physics_server_box2d. Many thanks to you for starting implementation on this!