Files
LNXSDK/lib/haxejolt
2026-03-04 00:50:15 -08:00
..
2026-03-04 00:50:15 -08:00
2026-03-04 00:50:15 -08:00
2026-03-04 00:50:15 -08:00
2026-03-04 00:50:15 -08:00
2026-03-04 00:50:15 -08:00
2026-03-04 00:50:15 -08:00
2026-03-04 00:50:15 -08:00

HaxeJolt - Jolt Physics Bindings for Haxe and Leenkx SDK

Haxe bindings for Jolt Physics, a multi-core friendly rigid body physics and collision detection library.

Targets

  • HashLink (HL): Native C++ bindings via hl/jolt.cpp
  • JavaScript/HTML5: Uses JoltPhysics.js (WASM)
  • RunT: Direct C++ integration

Usage

import jolt.Jt;

var system = new Jt.PhysicsSystem();
system.Init(1024, 0, 1024, 1024, broadPhaseLayer, objectVsBroadPhase, objectLayerPair);

var shape = new Jt.BoxShape(new Jt.Vec3(1, 1, 1));
var settings = new Jt.BodyCreationSettings(shape, new Jt.Vec3(0, 10, 0), Jt.Quat.sIdentity(), EMotionType_Dynamic, 1);
var body = system.GetBodyInterface().CreateBody(settings);

License

MIT License - Same as Jolt Physics