code wiki / _hdl_build / nx_phys3d_gate.nx
nx_phys3d_gate.nx
buildroot/runtime/_hdl_build/nx_phys3d_gate.nx
about
nx_phys3d_gate.nx -- gate for the unified sovereign rigid-body core (the 07-01 census's named gap).
The CLASSIC engine proofs, all integer-deterministic:
T1 integrator exactness (free fall matches the loop-computed analytic sum EXACTLY)
T2 restitution: e=0.5 bounce apex ~1/4 of drop height; e=0 body RESTS on the ground and stays
T3 THE STACK: 8 dynamic boxes on a static ground -- 1200 ticks, bounded drift, ALL ASLEEP at the end
T4 friction is real: mu=0.78 slider STOPS; mu=0 slider KEEPS SLIDING (same push, same ticks)
T5 determinism: two worlds, same script -> all body slots IDENTICAL after 500 ticks
T6 elastic head-on equal masses: velocities SWAP integer-exact (e=1)
T7 inelastic head-on (e=0): both stop (momentum symmetric)
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_phys3d.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 14 | func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 15 | func pn(v: i64) -> i64 |
| 27 | func gabs(v: i64) -> i64 { if v < 0 { return 0 - v } return v } called by 1: main |
| 29 | func mk_ground(base: i64) -> i64 { return ph_add(base, 1, 0, 0 - 512, 0, 100000, 512, 100000, 0, 0, 200) } |
| 31 | func main() -> i64 |