joltphysics

A multi core friendly rigid body physics and collision detection library suitable for games and VR applications.

Latest version: 5.6.0

Add to xmake.lua

add_requires("joltphysics 5.6.0")

Learn how to add and link packages with Xmake →

Information

License
MIT
Recipe updated
2026-07-23T06:23:08.000Z

Platforms

  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • bsd: i386, x86_64, arm, arm64, ppc, ppc64, ppc64el, riscv64, sparc64
  • mingw: i386, x86_64, arm, arm64
  • wasm: wasm32, wasm64
  • android: armeabi, armeabi-v7a, arm64-v8a, riscv64, x86, x86_64, mips, mip64
  • windows: x86, x64, arm, arm64, arm64ec
  • iphoneos: arm64, x86_64
  • macosx: x86_64, arm64

Options

cross_platform_deterministic
Turns on behavior to attempt cross platform determinism · Type: boolean · Default: false
debug_renderer
Adds support to draw lines and triangles, used to be able to debug draw the state of the world · Type: boolean · Default: true
double_precision
Compiles the library so that all positions are stored in doubles instead of floats. This makes larger worlds possible · Type: boolean · Default: false
exceptions
Compile the library with C++ exceptions enabled. This adds some overhead and Jolt doesn't use exceptions so by default it is off. · Type: boolean · Default: false
gpu_api
Compute backends. Used to perform computations on the GPU · Type: string · Values: cpu, dx12, mtl, vk
inst_avx
Enable AVX CPU instructions (x86/x64 only) · Type: boolean · Default: false
inst_avx2
Enable AVX2 CPU instructions (x86/x64 only) · Type: boolean · Default: false
inst_avx512
Enable AVX512F+AVX512VL CPU instructions (x86/x64 only) · Type: boolean · Default: false
inst_f16c
Enable half float CPU instructions (x86/x64 only) · Type: boolean · Default: false
inst_fmadd
Enable fused multiply add CPU instructions (x86/x64 only) · Type: boolean · Default: false
inst_lzcnt
Enable the lzcnt CPU instruction (x86/x64 only) · Type: boolean · Default: false
inst_sse4_1
Enable SSE4.1 CPU instructions (x86/x64 only) · Type: boolean · Default: false
inst_sse4_2
Enable SSE4.2 CPU instructions (x86/x64 only) · Type: boolean · Default: false
inst_tzcnt
Enable the tzcnt CPU instruction (x86/x64 only) · Type: boolean · Default: false
object_layer_bits
Number of bits to use in ObjectLayer. Can be 16 or 32. · Type: string · Default: 16 · Values: 16, 32
object_stream
Compile the ObjectStream class and RTTI attribute information · Type: boolean · Default: true
rtti
Compile the library with C++ RTTI enabled. This adds some overhead and Jolt doesn't use RTTI so by default it is off. · Type: boolean · Default: false
symbol_format
Which type of debug symbols to generate · Type: string · Default:
symbols
When turning this option on, the library will be compiled with debug symbols · Type: boolean · Default: false

Versions

  • v2.0.1
  • v3.0.0
  • v3.0.1
  • v4.0.0
  • v4.0.1
  • v4.0.2
  • v5.0.0
  • v5.1.0
  • v5.2.0
  • v5.3.0
  • v5.4.0
  • v5.5.0
  • v5.6.0

Dependencies

No dependencies declared.

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "joltphysics 5.6.0"

show info

xrepo info "joltphysics"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("joltphysics 5.6.0")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("joltphysics")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "joltphysics 5.6.0" shell