2D physics engine for slingshot games: AABB/circle collision, impulse resolution, sleeping, material damage, blast chains
import {
"tanxiansheng221/birdcore@0.1.1",
}let w = World::new()
w.add({ px: 0.0, py: 0.0, vx: 0.0, vy: 0.0, kind: BlockK,
shape: Box(48, 18), mat: Wood, hp: mat_hp(Wood),
asleep: false, sleep_t: 0.0, dead: false })
let damages = w.step(DT) // returns per-step damage eventsmoon test --target wasmInstall
Download zip2D physics engine for slingshot games: AABB/circle collision, impulse resolution, sleeping, material damage, blast chains