How to compile the Godot Engine source code with the Nvidia PhysX Physics engine

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Monochrome_Silence

I am trying to find out how to compile the source code, but with the Nvidia PhysX Engine integrated. I downloaded the Physics Engine SDK from the Nvidia website but I don’t know where I can put it into the source code files. I am also not sure which files I may have to modify so it can load the physics engine.

Any answer will be appreciated. Thank you.

if you don’t know will be impossible, Godot use own physic engine, physic nodes use colliders etc they will need be coded from beginning?

Moreus | 2023-03-21 08:48

I thought I could just compile it and boom, done.
Thanks for clarification.

Monochrome_Silence | 2023-03-21 08:50

You can add your own physics server, in fact I saw a discussion in the github proposals sections where one individual added their own physics implementation to add manual physics stepping.
There is a PhysicsServer3DManager through which you register new servers.
I suppose you would need to add a new physics server type that conforms to the physics server interface of godot.

PhysicsServer3DManager — Godot Engine (stable) documentation in English
https://github.com/godotengine/godot/blob/master/servers/physics_server_3d.h
https://github.com/godotengine/godot/blob/master/servers/register_server_types.cpp

zhyrin | 2023-03-21 16:23