A .NET wrapper for NVIDIA PhysX 4.1.2 written using C++/CLI.
A .NET wrapper for NVIDIA PhysX 4.1.2 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
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:
GeneratePathProperty="true"
attribute on the PhysX.Net <PackageReference />
node.
<PackageReference Include="PhysX.Net" Version="5.0.1-alpha1" GeneratePathProperty="true" />
.csproj
file:<ImportGroup>
<Import Project="$(PkgPhysX_Net)\lib\RuntimeFiles.targets"/>
</ImportGroup>
generate_projects.bat
from the physx
directorysetx NVIDIAPhysX41SDK "C:\NVIDIAGameWorks\PhysX" /M
(as administrator).