PhysX.Net 5.0.1-alpha1

This is a prerelease version of PhysX.Net.
dotnet add package PhysX.Net --version 5.0.1-alpha1
NuGet\Install-Package PhysX.Net -Version 5.0.1-alpha1
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="PhysX.Net" Version="5.0.1-alpha1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PhysX.Net --version 5.0.1-alpha1
#r "nuget: PhysX.Net, 5.0.1-alpha1"
#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.
// Install PhysX.Net as a Cake Addin
#addin nuget:?package=PhysX.Net&version=5.0.1-alpha1&prerelease

// Install PhysX.Net as a Cake Tool
#tool nuget:?package=PhysX.Net&version=5.0.1-alpha1&prerelease

PhysX.Net

A .NET wrapper for NVIDIA PhysX 4.1.2 written using C++/CLI.

Nuget

PM> Install-Package PhysX.Net -Prerelease

Build all the things!

A zip of all relevant DLLs and samples - https://github.com/stilldesign/PhysX.Net/releases

Usage

Runtime files

You must have PhysX_64.dll, PhysXCommon_64.dll, PhysXCooking_64.dll, PhysXFoundation_64.dll and Ijwhost.dll in the same directory as your executable.

There is a helper .targets file which will add links of these to the root of your project. Each file has Copy to Output Directory set.

In your .csproj file:

  1. Set the GeneratePathProperty="true" attribute on the PhysX.Net <PackageReference /> node.
    • e.g. <PackageReference Include="PhysX.Net" Version="5.0.1-alpha1" GeneratePathProperty="true" />
  2. Add the follow to your .csproj file:
<ImportGroup>
    <Import Project="$(PkgPhysX_Net)\lib\RuntimeFiles.targets"/>
</ImportGroup>

Development

PhysX.Net 5.0.1-alpha1 for NVIDIA PhysX 4.1.2

  • Targets PhysX 4.1.2
  • 64 bit version only
  • Dependencies
  • Remaining:
    • Vehicle sample and a few related classes
    • Attach/Detach shape from an actor
    • Getting started guide for people
    • Serialization
    • Broad Phase
    • Deletion Listener

Building

Dependencies

  • Visual Studio 2022
  • VC++ v143 toolset for desktop - needed to build PhysX itself. If you've built PhysX already, this could be ignored.

Compiling

Compile PhysX

  • Clone the PhysX repo
  • Run generate_projects.bat from the physx 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)

Compile PhysX.Net

  • Clone this repo
  • The default location of the PhysX 4.1.2 repo directory is C:\NVIDIAGameWorks\PhysX
    • To specify an alternative location on your computer: define the environment variable NVIDIAPhysX411SDK. You can do this by running setx NVIDIAPhysX411SDK "C:\NVIDIAGameWorks\PhysX" /M (as administrator).
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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

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
5.0.1-alpha1 288 11/27/2023
5.0.0-alpha1 82 11/27/2023
3.0.0-alpha1 1,035 3/30/2021
1.0.0-alpha 1,532 5/22/2019
0.11.0-alpha 2,108 3/9/2018
0.10.0-alpha 1,045 1/13/2018
0.9.0-alpha 864 12/7/2017
0.8.3-alpha 767 11/9/2017
0.8.2-alpha 829 11/6/2017
0.8.1-alpha 780 10/28/2017
0.8.0-alpha 823 10/15/2017
0.7.3-alpha 812 9/10/2017
0.7.2-alpha 868 8/8/2017
0.7.1-alpha 829 8/5/2017