Skip to content

M2002RST/PhysX4-ForGame

 
 

Repository files navigation

PhysX 4.1 (Special Version for Games)

How to compile for Windows & Android

  1. Download Android NDK from here NDK R11C Win64, unpack and place it in the root folder
  2. Run generate_projects.bat and choose a cross-compilation platform (I already added them in)
  3. Go to physx\compiler, run cmake --build ./SOLUTION_FOLDER_NAME, for instance:

    cmake --build ./OnlyStatic-vc17win64 --config checked --clean-first -j 20

    cmake --build ./OnlyStatic-vc17win64 --config release --clean-first -j 20

    cmake --build ./OnlyStatic-android-arm64-v8a-checked --clean-first -j 20

    cmake --build ./OnlyStatic-android-arm64-v8a-release --clean-first -j 20

  4. Strip debug info to reduce the package size, for instance:

    strip -g libPhysX_static.a

    (Location: android-ndk-r11c\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\aarch64-linux-android\strip.exe)

  5. Find the static libraries in physx\bin

PhysX 5 Now Available

The NVIDIA PhysX SDK version 5 is now available here. This repository will continue to be available to support legacy users. We encourage all new projects to start on the new release.

Introduction

Welcome to the NVIDIA PhysX SDK source code repository. This depot includes the PhysX SDK and the Kapla Demo application.

The NVIDIA PhysX SDK is a scalable multi-platform physics solution supporting a wide range of devices, from smartphones to high-end multicore CPUs and GPUs. PhysX is already integrated into some of the most popular game engines, including Unreal Engine, and Unity3D. PhysX SDK on developer.nvidia.com.

Documentation

Please see Release Notes for updates pertaining to the latest version.

The full set of documentation can also be found in the repository under physx/documentation or online at http://gameworksdocs.nvidia.com/simulation.html

Platform specific information can be found here:

Quick Start Instructions

Requirements:

  • Python 2.7.6 or later
  • CMake 3.12 or later

To begin, clone this repository onto your local drive. Then change directory to physx/, run ./generate_projects.[bat|sh] and follow on-screen prompts. This will let you select a platform specific solution to build. You can then open the generated solution file with your IDE and kick off one or more configuration builds.

To build and run the Kapla Demo see kaplademo/README.md.

About

NVIDIA PhysX SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 93.2%
  • CMake 3.2%
  • C 1.9%
  • HTML 1.4%
  • Python 0.2%
  • Batchfile 0.1%