YellowDogMan.BepuPhysics 2.5.0-ydm-0.3.1

Prefix Reserved
This is a prerelease version of YellowDogMan.BepuPhysics.
dotnet add package YellowDogMan.BepuPhysics --version 2.5.0-ydm-0.3.1
                    
NuGet\Install-Package YellowDogMan.BepuPhysics -Version 2.5.0-ydm-0.3.1
                    
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="YellowDogMan.BepuPhysics" Version="2.5.0-ydm-0.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YellowDogMan.BepuPhysics" Version="2.5.0-ydm-0.3.1" />
                    
Directory.Packages.props
<PackageReference Include="YellowDogMan.BepuPhysics" />
                    
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 YellowDogMan.BepuPhysics --version 2.5.0-ydm-0.3.1
                    
#r "nuget: YellowDogMan.BepuPhysics, 2.5.0-ydm-0.3.1"
                    
#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 YellowDogMan.BepuPhysics@2.5.0-ydm-0.3.1
                    
#: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=YellowDogMan.BepuPhysics&version=2.5.0-ydm-0.3.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=YellowDogMan.BepuPhysics&version=2.5.0-ydm-0.3.1&prerelease
                    
Install as a Cake Tool

bepuphysics v2

<p align="center"> <a href="https://www.youtube.com/watch?v=sfgC_eNx9M8" target="_blank"><img src="Documentation/images/youtubeLink.png" width="375" height="211" border="0" /></a> <a href="https://www.youtube.com/watch?v=tjtwSq3u6Dg" target="_blank"><img src="Documentation/images/youtubeLink24.png" width="375" height="211" border="0" /></a></p>

This is the repo for the bepuphysics v2 library, a complete rewrite of the C# 3d rigid body physics engine BEPUphysics v1.

The BepuPhysics and BepuUtilities libraries target .NET 8 and should work on any supported platform. The demos application, Demos.sln, uses DX11 by default. There is also a Demos.GL.sln that uses OpenGL and should run on other platforms. The demos can be run from the command line (in the repo root directory) with dotnet run --project Demos/Demos.csproj -c Release or dotnet run --project Demos.GL/Demos.csproj -c Release.

The physics engine heavily uses System.Numerics.Vectors types, so to get good performance, you'll need a compiler which can consume those types (like RyuJIT).

To build the source, the easiest option is a recent version of Visual Studio with the .NET desktop development workload installed. Demos.sln references all relevant projects. For more information, see Building.

Features

  • Spheres, capsules, boxes, triangles, cylinders, and convex hulls
  • Compounds of the above
  • Meshes
  • A whole bunch of constraint types
  • Newts
  • Linear and angular continuous collision detection
  • Extremely low cost sleep states for resting bodies
  • Efficient scene-wide ray and sweep queries
  • Character controller example
  • At least somewhat extensible collision pipeline, with example custom voxel collidable
  • Highly nonidiomatic APIs
  • Super speediness
  • And a bunch of other miscellaneous stuff!

Report bugs on the issues tab.

Use the discussions tab for... discussions. And questions.

There's a discord server. I'll be focusing on github for long-form content, but if you like discord, you can discord.

Documentation pages in a conventional form factor exist! (If I've broken the docs page, see the raw repo versions as a backup or github pages if I just broke the domain redirect.)

If you have too many dollars, I'm willing to consume them through github sponsors. Please do not give me any amount of money that feels even slightly painful. Development is not conditional on sponsorships, and I already have a goodly number of dollars.

alternate text is missing from this package README image

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.5.0-ydm-0.3.1 177 11/24/2025
2.5.0-ydm-0.3.0 163 9/30/2025
2.5.0-ydm-0.2.9 165 9/30/2025
2.5.0-ydm-0.2.8 159 9/30/2025
2.5.0-ydm-0.2.7 154 9/29/2025
2.5.0-ydm-0.2.6 165 9/29/2025
2.5.0-ydm-0.2.5 164 9/29/2025
2.5.0-ydm-0.2.4 156 9/29/2025
2.5.0-ydm-0.2.3 163 9/24/2025
2.4.0.2-ydm-0.1.7 513 2/18/2025
2.4.0.2-ydm-0.1.6 216 2/5/2024
2.4.0.2-ydm-0.1.5 126 2/1/2024
2.4.0.2-ydm-0.1.4 125 2/1/2024
2.4.0.2-ydm-0.1.3 182 12/17/2023
2.4.0.2-ydm-0.1.2 129 12/17/2023