Cocos2D-Mono.Box2D
2.6.0
dotnet add package Cocos2D-Mono.Box2D --version 2.6.0
NuGet\Install-Package Cocos2D-Mono.Box2D -Version 2.6.0
<PackageReference Include="Cocos2D-Mono.Box2D" Version="2.6.0" />
<PackageVersion Include="Cocos2D-Mono.Box2D" Version="2.6.0" />
<PackageReference Include="Cocos2D-Mono.Box2D" />
paket add Cocos2D-Mono.Box2D --version 2.6.0
#r "nuget: Cocos2D-Mono.Box2D, 2.6.0"
#:package Cocos2D-Mono.Box2D@2.6.0
#addin nuget:?package=Cocos2D-Mono.Box2D&version=2.6.0
#tool nuget:?package=Cocos2D-Mono.Box2D&version=2.6.0
<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 | net10.0 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-browser was computed. net10.0-ios was computed. net10.0-ios26.0 is compatible. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net10.0-windows7.0 is compatible. |
-
net10.0
- MonoGame.Framework.DesktopGL (>= 3.8.5)
-
net10.0-android36.0
- MonoGame.Framework.Android (>= 3.8.5)
-
net10.0-ios26.0
- MonoGame.Framework.iOS (>= 3.8.5)
-
net10.0-windows7.0
- MonoGame.Framework.WindowsDX (>= 3.8.5)
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.
2.6.0 - Retargeted to .NET 10 + MonoGame 3.8.5; no Box2D code changes. Version aligned with the Cocos2D-Mono 2.6.0 release line.
2.5.12 - No Box2D changes; version aligned with the Cocos2D-Mono 2.5.12 release line.
- See https://github.com/Cocos2D-Mono/cocos2d-mono for the full changelog.