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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cocos2D-Mono.Box2D" Version="2.5.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cocos2D-Mono.Box2D" Version="2.5.11" />
                    
Directory.Packages.props
<PackageReference Include="Cocos2D-Mono.Box2D" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Cocos2D-Mono.Box2D --version 2.5.11
                    
#r "nuget: Cocos2D-Mono.Box2D, 2.5.11"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Cocos2D-Mono.Box2D@2.5.11
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Cocos2D-Mono.Box2D&version=2.5.11
                    
Install as a Cake Addin
#tool nuget:?package=Cocos2D-Mono.Box2D&version=2.5.11
                    
Install as a Cake Tool

<div align="center">

Cocos2D-Mono

MonoGame powered built the cocos2d way!

Check out the docs!

</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.

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.