TeraBullet is a version of bullet with extensions for direct interactions for voxel worlds. Written for use with Terasology. this is an implementation of bullet wraps around native bullet using SWIG.
Make sure the following applications are installed:
Clone this repository and initialize all git submodules:
git submodule update --init --recursive
To build the Java library and all supported natives for the current platform run
./gradlew build buildNatives
The native libraries are written to build/natives/*
and are .so
, dll
, or .dylib
files.
To see a list of all known natives (platforms and operating systems), run
./gradlew listNatives
To build only the Java library part of bullet, simply run
./gradlew build
...
To test be sure to make the version in gradle.properties
unique so you can ensure you use it by updating the corresponding version in Terasology's root build.gradle
(natives) as well as its engine/build.gradle
(Java wrapper). Use ./gradlew build zipNatives publishToMavenLocal
to get binaries created locally for JNBullet that Terasology can then read, and make sure to refresh its natives (delete the natives
directory and rerun gradlew extractNatives
)
This library is Licensed under the Apache 2 License and is a rework of bullet wrapper from libgdx