This repo contains C# bindings for NVIDIA PhysX as well as a Biohazrd-powered generator for generating them.
The bindings are still young but should be usable on Windows with some quirks. If you're interested in using PhysX on .NET, please consider sponsoring development of this library.
This project is licensed under the MIT License. See the license file for details.
Additionally, this project has some third-party dependencies. See the third-party notice listing for details.
- Ensure Git submodules are up-to-date with
git submodule update --init --recursive
- Build and run
build.cmd
from the repository root
Note: You may see many errors and warnings during generation. This is because Biohazrd doesn't support everything in PhysX yet. These errors only indicate the corresponding APIs were skipped, so the output should still be fine as long as you don't need those APIs.
If you make any changes to the PhysX source code or change the branch it uses, you must re-generate the bindings using build.cmd
.
Building/running the sample is currently only supported on Windows x64 with Visual Studio 2019.
The sample does not currently have a graphical output, but will automatically connect to the PhysX Visual Debugger if it's running.
Tool | Recommended Version |
---|---|
Visual Studio 2019 | 16.9.4 |
.NET Core SDK | 6.0 |
PhysX Visual Debugger | Latest |
Visual Studio requires the "Desktop development with C++" and ".NET desktop development" workloads to be installed.