resources (25.5e): @creates/@releases on Physics' handles - every shape maker and phys_shape_free (PhysShape), the body adds and phys_remove (PhysBody), the walker (PhysWalker), and ludic.nav's crowd agents (NavAgent)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 16:57:31 +03:00
parent a0c6f8ce7f
commit 64b361510d
6 changed files with 21 additions and 0 deletions

View file

@ -2,6 +2,7 @@
# middle. Its bow is -z at yaw 0, the way the valley faces (forward is (-sin yaw, -cos yaw)).
# hx, hy, hz its half width, depth and length; buoyancy over 1 floats it (4: a quarter under)
@creates(PhysBody)
export function phys_hull_add(physics_st: mut PhysicsState, x: float, y: float, z: float, yaw: float, hx: float, hy: float, hz: float, mass: float, buoyancy: float, drag: float) -> int {
let s = phys_box(physics_st, hx, hy, hz)
let id = phys_body_add(physics_st, s, x, y, z, yaw, mass)