{"id":17250071,"url":"https://github.com/stephengold/jolt-jni","last_synced_at":"2026-05-08T21:04:29.867Z","repository":{"id":246140442,"uuid":"820194660","full_name":"stephengold/jolt-jni","owner":"stephengold","description":"JVM bindings for Jolt Physics and V-HACD","archived":false,"fork":false,"pushed_at":"2026-03-27T04:27:52.000Z","size":7741,"stargazers_count":64,"open_issues_count":1,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-03-27T16:53:12.775Z","etag":null,"topics":["android-library","collision-detection","collision-shape","java","jni","jolt-physics","jvm-library","library","open-source","physics","physics-3d","physics-engine","physics-simulation","ragdoll-physics","rigid-bodies","rigid-body-dynamics","soft-body-simulation","vhacd"],"latest_commit_sha":null,"homepage":"https://stephengold.github.io/jolt-jni-docs/jolt-jni-en/English/overview.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stephengold.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-26T02:01:36.000Z","updated_at":"2026-03-27T04:28:01.000Z","dependencies_parsed_at":"2026-01-09T08:06:47.623Z","dependency_job_id":null,"html_url":"https://github.com/stephengold/jolt-jni","commit_stats":null,"previous_names":["stephengold/jolt-jni"],"tags_count":44,"template":false,"template_full_name":null,"purl":"pkg:github/stephengold/jolt-jni","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephengold%2Fjolt-jni","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephengold%2Fjolt-jni/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephengold%2Fjolt-jni/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephengold%2Fjolt-jni/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephengold","download_url":"https://codeload.github.com/stephengold/jolt-jni/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephengold%2Fjolt-jni/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31311266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-library","collision-detection","collision-shape","java","jni","jolt-physics","jvm-library","library","open-source","physics","physics-3d","physics-engine","physics-simulation","ragdoll-physics","rigid-bodies","rigid-body-dynamics","soft-body-simulation","vhacd"],"created_at":"2024-10-15T06:46:05.796Z","updated_at":"2026-05-08T21:04:29.861Z","avatar_url":"https://github.com/stephengold.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jolt JNI\n\n[The Jolt-JNI Project][project] provides\n[JVM] bindings for [Jolt Physics][jolt]\nand [Khaled Mamou's V-HACD Library][vhacd],\nto facilitate physics simulation in JVM languages such as [Java] and [Kotlin].\n\nSource code (in Java and C++) is provided under\n[an MIT license][license].\n\n\n\u003ca name=\"toc\"\u003e\u003c/a\u003e\n\n## Contents of this document\n\n+ [Translating Jolt Physics applications into Java](#translate)\n+ [How to add Jolt JNI to an existing project](#add)\n+ [How to build Jolt JNI from source](#build)\n+ [Freeing native objects](#free)\n+ [External links](#links)\n+ [Acknowledgments](#acks)\n\n\n\u003ca name=\"translate\"\u003e\u003c/a\u003e\n\n## Translating Jolt Physics applications into Java\n\nThere’s close correspondence between the class/method names\nof Jolt Physics and Jolt JNI.\nFor example:\n\n+ The `Body` class in Jolt JNI will (eventually) provide\n  all the functionality of the `Body` class in Jolt Physics.\n+ The `ConstBody` interface will include all the `const` methods\n  of the Jolt Physics `Body` class, such as its `GetPosition()` method,\n  which in Jolt JNI is called `getPosition()`.\n\nThings become slightly more interesting when C++ templates\nand public member data are involved. For instance:\n\n+ An array of body IDs is `Array\u003cBodyID\u003e` in Jolt Physics;\n  in Jolt JNI it’s called a `BodyIdVector`.\n+ The `mConvexRadius` member of the `BoxShapeSettings` class\n  is accessed using `getConvexRadius()` and `setConvexRadius()` in Jolt JNI.\n\nFor a couple well-known Jolt Physics examples,\n[line-for-line translations into Java](https://github.com/stephengold/jolt-jni/tree/master/src/test/java/testjoltjni/app)\nare provided.\n\n[Jump to the table of contents](#toc)\n\n\n\u003ca name=\"add\"\u003e\u003c/a\u003e\n\u003ca name=\"addAndroid\"\u003e\u003c/a\u003e\n\u003ca name=\"init\"\u003e\u003c/a\u003e\n\n## How to add Jolt JNI to an existing project\n\n[How to add Jolt JNI to an existing project](https://stephengold.github.io/jolt-jni-docs/jolt-jni-en/English/add.html)\n\n[Jump to the table of contents](#toc)\n\n\n\u003ca name=\"build\"\u003e\u003c/a\u003e\n\n## How to build Jolt JNI from source\n\n[How to build Jolt JNI from source](https://stephengold.github.io/jolt-jni-docs/jolt-jni-en/English/build.html)\n\n[Jump to the table of contents](#toc)\n\n\n\u003ca name=\"free\"\u003e\u003c/a\u003e\n\n## Freeing native objects\n\n[Freeing native memory](https://stephengold.github.io/jolt-jni-docs/jolt-jni-en/English/free.html)\n\n[Jump to the table of contents](#toc)\n\n\n\u003ca name=\"links\"\u003e\u003c/a\u003e\n\n## External links\n\n+ [The Jolt Physics repo at GitHub](https://github.com/jrouwe/JoltPhysics)\n\n[Jump to the table of contents](#toc)\n\n\n\u003ca name=\"acks\"\u003e\u003c/a\u003e\n\n## Acknowledgments\n\nJolt JNI is derived from open-source software:\n\n  + the [Jolt Physics][jolt] project\n  + [Khaled Mamou's V-HACD Library][vhacd] for approximate convex decomposition\n\nUseful code was contributed by TropheusJ, wil (aka JNightRider), xI-Mx-Ix,\nand MORIMORI0317.\n\nThis project also made use of the following software tools:\n\n  + the [Android Studio][studio], [IntelliJ IDEA][idea], and [NetBeans]\n    integrated development environments\n  + the [Checkstyle] tool\n  + the [Firefox] web browser\n  + the [GNU Compiler Collection][gcc] and [Project Debugger][gdb]\n  + the [Git] revision-control system and GitK commit viewer\n  + the [GitKraken] client\n  + the [Gradle] build tool\n  + the [Java] compiler, standard doclet, and runtime environment\n  + the [Linux Mint][mint] operating system\n  + the [LLVM Compiler Infrastructure][llvm]\n  + the [Markdown] document-conversion tool\n  + the [Meld] visual merge tool\n  + Microsoft Windows and Visual Studio\n\nI am grateful to Riccardo Balbo (aka \"riccardo\") for bringing\nV-HACD to my attention.\n\nI am grateful to [GitHub], [Sonatype],\n[Travis], and [MacStadium]\nfor providing free hosting for this project\nand many other open-source projects.\n\nI'm also grateful to my dear Holly, for keeping me sane.\n\nIf I've misattributed anything or left anyone out, please let me know, so I can\ncorrect the situation: sgold@sonic.net\n\n[Jump to the table of contents](#toc)\n\n\n[checkstyle]: https://checkstyle.org \"Checkstyle\"\n[firefox]: https://www.mozilla.org/en-US/firefox \"Firefox\"\n[gcc]: https://gcc.gnu.org \"GNU Compiler Collection\"\n[gdb]: https://www.gnu.org/software/gdb/ \"GNU Project Debugger\"\n[git]: https://git-scm.com \"Git\"\n[github]: https://github.com \"GitHub\"\n[gitkraken]: https://www.gitkraken.com \"GitKraken client\"\n[gradle]: https://gradle.org \"Gradle\"\n[idea]: https://www.jetbrains.com/idea/ \"IntelliJ IDEA\"\n[java]: https://en.wikipedia.org/wiki/Java_(programming_language) \"Java programming language\"\n[jolt]: https://jrouwe.github.io/JoltPhysics \"Jolt Physics\"\n[jvm]: https://en.wikipedia.org/wiki/Java_virtual_machine \"Java Virtual Machine\"\n[kotlin]: https://en.wikipedia.org/wiki/Kotlin_(programming_language) \"Kotlin programming language\"\n[license]: https://github.com/stephengold/jolt-jni/blob/master/LICENSE \"Jolt-JNI license\"\n[llvm]: https://www.llvm.org \"LLVM Compiler\"\n[macstadium]: https://www.macstadium.com/ \"MacStadium\"\n[markdown]: https://daringfireball.net/projects/markdown \"Markdown\"\n[meld]: https://meldmerge.org \"Meld merge tool\"\n[mint]: https://linuxmint.com \"Linux Mint\"\n[netbeans]: https://netbeans.org \"NetBeans\"\n[project]: https://github.com/stephengold/jolt-jni \"Jolt-JNI project\"\n[sonatype]: https://www.sonatype.com \"Sonatype\"\n[studio]: https://developer.android.com/studio \"Android Studio IDE\"\n[travis]: https://travis-ci.com \"Travis CI\"\n[vhacd]: https://github.com/kmammou/v-hacd \"V-HACD Library\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephengold%2Fjolt-jni","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephengold%2Fjolt-jni","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephengold%2Fjolt-jni/lists"}