RepositoryJavaUSUnited States
stephengold

stephengold/jolt-jni

JVM bindings for Jolt Physics and V-HACD

89stars
14forks
0issues
0views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: physics-engine

#1 Repository of the week

1
TINIX TRENDING·Topic: collision-shape

#1 Repository of the week

1
TINIX TRENDING·Topic: rigid-bodies

#1 Repository of the week

Jolt JNI

The Jolt-JNI Project provides JVM bindings for Jolt Physics and Khaled Mamou's V-HACD Library, to facilitate physics simulation in JVM languages such as Java and Kotlin.

Source code (in Java and C++) is provided under an MIT license.

Contents of this document

Translating Jolt Physics applications into Java

There’s close correspondence between the class/method names of Jolt Physics and Jolt JNI. For example:

  • The Body class in Jolt JNI will (eventually) provide all the functionality of the Body class in Jolt Physics.
  • The ConstBody interface will include all the const methods of the Jolt Physics Body class, such as its GetPosition() method, which in Jolt JNI is called getPosition().

Things become slightly more interesting when C++ templates and public member data are involved. For instance:

  • An array of body IDs is Array in Jolt Physics; in Jolt JNI it’s called a BodyIdVector.
  • The mConvexRadius member of the BoxShapeSettings class is accessed using getConvexRadius() and setConvexRadius() in Jolt JNI.

For a couple well-known Jolt Physics examples, line-for-line translations into Java are provided.

Jump to the table of contents

How to add Jolt JNI to an existing project

How to add Jolt JNI to an existing project

Jump to the table of contents

How to build Jolt JNI from source

How to build Jolt JNI from source

Jump to the table of contents

Freeing native objects

Freeing native memory

Jump to the table of contents

Jump to the table of contents

Acknowledgments

Jolt JNI is derived from open-source software:

Useful code was contributed by TropheusJ, wil (aka JNightRider), xI-Mx-Ix, MORIMORI0317, and David J. Morfe (aka jakeee51).

This project also made use of the following software tools:

I am grateful to Riccardo Balbo (aka "riccardo") for bringing V-HACD to my attention.

I am grateful to GitHub, Sonatype, Travis, and MacStadium for providing free hosting for this project and many other open-source projects.

I'm also grateful to my dear Holly, for keeping me sane.

If I've misattributed anything or left anyone out, please let me know, so I can correct the situation: sgold@sonic.net

Jump to the table of contents

Similar Projects

Discover other similar projects and AI models.

RepositoryJavaScript
liabru/matter-js

a 2D rigid body physics engine for the web ▲● ■

18.7k
Sep 30, 2026
RepositoryC++
jrouwe/JoltPhysics

A multi core friendly rigid body physics and collision detection library. Written in C++. Suitable for games and VR applications. Used by Horizon Forbidden West and Death Stranding 2.

12.6k
Nov 28, 2026
RepositoryRust
dimforge/nphysics

2 and 3-dimensional rigid body physics engine for Rust.

1.7k
Jul 27, 2021
RepositoryC++
erayzesen/QuarkPhysics

A 2D Soft Body and Rigid Body Physics Engine.

300
Oct 17, 2025
RepositoryJava
stephengold/Minie

Integrate Bullet Physics and V-HACD into jMonkeyEngine projects (code has New BSD license)

142
Nov 24, 2026
Repository
GitHubDaily/GitHubDaily

坚持分享 GitHub 上高质量、有趣实用的开源技术教程、开发者工具、编程网站、技术资讯。A list cool, interesting projects of GitHub.

48.6k
Dec 31, 2025
RepositoryTypeScript
piqnt/planck.js

2D JavaScript Physics Engine

5.3k
Nov 14, 2026
RepositoryRust
avianphysics/avian

ECS-driven 2D and 3D physics engine for the Bevy game engine.

3.3k
Nov 30, 2026
RepositoryC++
projectchrono/chrono

High-performance C++ library for multiphysics and multibody dynamics simulations

3.2k
Nov 25, 2026