There are two parts:
- A Godot module which must be compiled with the engine. This is necessary to communicate with the library through the PhysicsServer
- A library with the actual bindings
- Run
module/generate.py
first - Then, either make a symlink or copy the contents of
module
to the engine sourcemodules/pluggable_physics
- Build the engine
- Build the library with the provided
Makefile
usingmake
- Set
3d/physics_engine
toCustom
- Run
python module/generate.py
- Copy
module/api.json
torapier3d/api.json
- Then, either make a symlink or copy the contents of
module
to the engine sourcemodules/pluggable_physics
- Build the engine
- Build the library following these steps:
- ensure
LIBCLANG_PATH
environment variable is set to llvm's bin folder containinglibclang.dll
rustup default nightly-msvc
- If you get an error try:
cargo update
- If you get an error try:
- run
build_win.bat
- ensure
- Set
3d/physics_engine
toCustom
If you have difficulties, please contact me or open an issue.