@skidpad/jolt
v0.8.0
Published
Jolt Physics host adapter for Skidpad: drives a Jolt rigid body with the Skidpad four-wheel vehicle model.
Maintainers
Readme
@skidpad/jolt
Drives a Jolt Physics body with
the @skidpad/core
four-wheel model.
import { createChassisBody, JoltVehicle } from "@skidpad/jolt";
const body = createChassisBody(Jolt, jolt, def, { objectLayer: MOVING });
const host = new JoltVehicle(Jolt, jolt, world, car, body);
// each frame
host.step(1 / 60); // beforeStep, world.step, afterStep
jolt.Step(1 / 60, 1);Guide: driving a Jolt body.
License: MIT OR Apache-2.0.
