@hazumi/physics
v0.5.0
Published
Optional rigid-body plugin host. The solver lives in @hazumi/math.
Readme
@hazumi/physics
Rigid-body plugin host. The solver is @hazumi/math's physics world — this
package owns one on the scene and steps it after each fixed update.
import { createPluginHost, start } from "hazumi/app";
import { physics } from "hazumi/physics";
import { webgl2 } from "hazumi/backends/webgl2";
start({ backend: webgl2(), plugins: createPluginHost().use(physics()) }, ({ physics }) => {
physics.world.addBox({ x: 200, y: 80, width: 40, height: 28 });
});It does not draw. Outlines belong to hazumi/debug.
Site: hazumi-eta.vercel.app · Source: github.com/salty-max/hazumi
