-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
325d006
commit dea47ab
Showing
6 changed files
with
82 additions
and
66 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,32 @@ | ||
# Godot bindings for the Rapier3D physics library | ||
|
||
## How to use | ||
There are two parts: | ||
|
||
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 | ||
|
||
* 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 | ||
## Linux: | ||
|
||
1. Run `module/generate.py` first | ||
2. Then, either make a symlink or copy the contents of `module` to the engine source | ||
3. Build the engine | ||
4. Build the library with the provided `Makefile` using `make` | ||
5. Set `3d/physics_engine` to `Custom` | ||
- Run `module/generate.py` first | ||
- Then, either make a symlink or copy the contents of `module` to the engine source `modules/pluggable_physics` | ||
- Build the engine | ||
- Build the library with the provided `Makefile` using `make` | ||
- Set `3d/physics_engine` to `Custom` | ||
|
||
Note that these instructions have only been tested on Linux. If you have | ||
difficulties, please contact me or open an issue. | ||
## Windows: | ||
- Run `python module/generate.py` | ||
- Copy `module/api.json` to `rapier3d/api.json` | ||
- Then, either make a symlink or copy the contents of `module` to the engine source `modules/pluggable_physics` | ||
- Build the engine | ||
- Build the library following these steps: | ||
- ensure `LIBCLANG_PATH` environment variable is set to llvm's bin folder containing `libclang.dll` | ||
- `rustup default nightly-msvc` | ||
- If you get an error try: `cargo update` | ||
- run `build_win.bat` | ||
- Set `3d/physics_engine` to `Custom` | ||
|
||
If you have difficulties, please contact me or open an issue. | ||
|
||
# The editor may crash if you keep `3d/physics_engine` set to `Custom`. If it does, uncomment it in `project.godot` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
cargo build --target x86_64-pc-windows-msvc --release | ||
cp target/x86_64-pc-windows-msvc/release/rapier3d.dll addons/rapier3d/lib/rapier3d.dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters