Cocos2D-Mono.Box2D
2.5.11
dotnet add package Cocos2D-Mono.Box2D --version 2.5.11
NuGet\Install-Package Cocos2D-Mono.Box2D -Version 2.5.11
<PackageReference Include="Cocos2D-Mono.Box2D" Version="2.5.11" />
<PackageVersion Include="Cocos2D-Mono.Box2D" Version="2.5.11" />
<PackageReference Include="Cocos2D-Mono.Box2D" />
paket add Cocos2D-Mono.Box2D --version 2.5.11
#r "nuget: Cocos2D-Mono.Box2D, 2.5.11"
#:package Cocos2D-Mono.Box2D@2.5.11
#addin nuget:?package=Cocos2D-Mono.Box2D&version=2.5.11
#tool nuget:?package=Cocos2D-Mono.Box2D&version=2.5.11
<div align="center">

MonoGame powered built the cocos2d way!
</div>
Cocos2D-Mono.Box2D
The Box2D physics engine — a managed C# port — used by Cocos2D-Mono.
This package multi-targets every supported platform, so a single reference works everywhere:
| Target framework | Platform |
|---|---|
net9.0 |
DesktopGL (Windows, Linux, macOS) |
net9.0-windows7.0 |
WindowsDX |
net9.0-android35.0 |
Android |
net9.0-ios18.0 |
iOS |
Do I need to reference this directly?
Usually not. Cocos2D-Mono (and Cocos2D-Mono.Core) already depend on this package, so
Box2D flows in transitively and Box2D.dll lands in your output automatically.
Reference it explicitly only if you want the physics port without the Cocos2D-Mono engine, or you want to pin its version directly:
<PackageReference Include="Cocos2D-Mono.Box2D" Version="2.5.11" />
Usage
The types live in the Box2D.* namespaces:
using Box2D.Collision.Shapes;
using Box2D.Common;
using Box2D.Dynamics;
var world = new b2World(new b2Vec2(0f, -10f));
Cocos2D-Mono also ships helpers that bridge Box2D with the scene graph — see the Box2D sample for a worked example.
Links
License
Cocos2D-Mono is licensed under AGPL-3.0, with a commercial license available for use in closed-source or proprietary applications. See the LICENSE for full terms, including how to obtain a commercial license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-android35.0 is compatible. net9.0-browser was computed. net9.0-ios was computed. net9.0-ios18.0 is compatible. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- MonoGame.Framework.DesktopGL (>= 3.8.4.1)
-
net9.0-android35.0
- MonoGame.Framework.Android (>= 3.8.4.1)
-
net9.0-ios18.0
- MonoGame.Framework.iOS (>= 3.8.4.1)
-
net9.0-windows7.0
- MonoGame.Framework.WindowsDX (>= 3.8.4.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Cocos2D-Mono.Box2D:
| Package | Downloads |
|---|---|
|
Cocos2D-Mono
Cocos2D-Mono is a managed C# port of cocos2d-x built on MonoGame. This single package multi-targets DesktopGL (Windows-GL, Linux, macOS), WindowsDX, Android, and iOS. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.5.11 | 35 | 7/11/2026 |
2.5.11 - Debut of Cocos2D-Mono.Box2D, a single multi-targeted package (DesktopGL, WindowsDX, Android, iOS) of the Box2D physics port used by Cocos2D-Mono. Also flows transitively through the Cocos2D-Mono package.
- See https://github.com/Cocos2D-Mono/cocos2d-mono for the full changelog.