A .NET wrapper for NVIDIA PhysX 4.1.0 written using C++/CLI.
PM> Install-Package PhysX.Net -Prerelease
A zip of all relevant DLLs and samples - https://github.com/stilldesign/PhysX.Net/releases
- Targets PhysX 4.1.0.25992954
- 64 bit version only
- Dependencies
- .NET 4.7.1
- C runtime 2019 - https://aka.ms/vs/16/release/VC_redist.x64.exe
- Remaining:
- Vehicle sample and a few related classes
- Attach/Detach shape from an actor
- Getting started guide for people
- Serialization
- Broad Phase
- Deletion Listener
- Visual Studio 2019
- VC++ 2015.4 v140 toolset for desktop (x86,x64) - needed to build PhysX itself. If you've built PhysX already, this could be ignored.
- Clone the PhysX repo
- Run
generate_projects.bat
from thephysx
directory - Open the solution and select the debug configuration
- You'll need to change all the PhysX projects to use Multi-threaded Debug DLL in order for them to be consumed by .NET
- Select the projects in the solution explorer, right click, properties, C/C++, Code Generation and change Runtime Library to Multi-threaded Debug DLL (/MDd)
- Clone this repo
- The default location of the PhysX 4.1 repo directory is C:\NVIDIAGameWorks\PhysX
- To specify an alternative location on your computer: define the environment variable NVIDIAPhysX41SDK. You can do this by running
setx NVIDIAPhysX41SDK "C:\NVIDIAGameWorks\PhysX" /M
(as administrator).
- To specify an alternative location on your computer: define the environment variable NVIDIAPhysX41SDK. You can do this by running
Change log: https://github.com/NVIDIAGameWorks/PhysX/blob/4.1/physx/release_notes.html
The main changes are: