PhysX4.NET 5.2.0

dotnet add package PhysX4.NET --version 5.2.0
                    
NuGet\Install-Package PhysX4.NET -Version 5.2.0
                    
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="PhysX4.NET" Version="5.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PhysX4.NET" Version="5.2.0" />
                    
Directory.Packages.props
<PackageReference Include="PhysX4.NET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PhysX4.NET --version 5.2.0
                    
#r "nuget: PhysX4.NET, 5.2.0"
                    
#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.
#:package PhysX4.NET@5.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PhysX4.NET&version=5.2.0
                    
Install as a Cake Addin
#tool nuget:?package=PhysX4.NET&version=5.2.0
                    
Install as a Cake Tool

blue PhysX icon

PhysX.NET

NuGet

PhysX.NET is a .NET wrapper for NVIDIA PhysX 4.1.2, implemented using C++/CLI. This project is a fork of PhysX.Net and includes a fully functional vehicle sample.

Features

  • Vehicle Physics: This wrapper is the only one that offers vehicle physics implementation in C#. This project offers a fully functional vehicle simulation example.

  • Scene Management: Create and manage physics scenes.

  • Actor Management: Handle actors, their properties, and physics interactions.

  • Material Properties: Define and manage physical materials.

  • Raycasting and Queries: Perform raycasts and queries.

  • Debugging Tools: Visualize and debug physics interactions using the PhysX Visual Debugger.

  • Remaining Features:

    • Attach/detach shapes from actors
    • Serialization support
    • Broad phase collision detection
    • Deletion listener support

Usage

To use PhysX.NET, follow these steps:

  1. Install via NuGet: Add the package to your project using the .NET CLI:

    dotnet add package PhysX4.NET
    

    Or search for PhysX4.NET in the NuGet Package Manager in Visual Studio.

  2. Initialize PhysX: Follow the examples provided in the repository to set up and initialize PhysX in your project.

Example

Sample implementations are available in the Samples directory of the repository. These examples demonstrate how to use the wrapper and its features.

Development

Feature Requests

Feature requests are welcome! If you have specific needs or suggestions, please open an issue on the GitHub Issues page to discuss your ideas.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.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.2.0 164 7/3/2025
5.1.0 260 12/8/2024