C# Apache-2.0

bepuphysics2

Pure C# 3D real time physics simulation library, now with a higher version number.

B

bepu

Dernière activité 19 sept. 2026
bepu/bepuphysics2

3 k

étoiles

316

forks

72

issues ouvertes

physics-3dphysics-enginephysics-simulation-library

Ce README est souvent en anglais.

bepuphysics v2

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.

Projets similaires

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.

C++computer-animationgame-developmentkinematics
Bbulletphysics
14,7 k étoiles3,1 k

JoltPhysics C# bindings

C#game-developmentgame-enginephysics
Aamerkoleci
414 étoiles55

A multi core friendly rigid body physics and collision detection library. Written in C++. Suitable for games and VR applications. Used by Horizon Forbidden West and Death Stranding 2.

C++c-plus-pluscppgame-development
Jjrouwe
11,6 k étoiles979