feat(physics): phys_resolve (two passes, the place kept) - a contact more up than across is ground under the feet, not a wall

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-26 23:47:29 +03:00
parent 1c814464c5
commit 28c54e4b39
6 changed files with 58 additions and 5 deletions

View file

@ -45,6 +45,8 @@ export state PhysicsState {
ph_hard: float = 2.0 # metres a second: a contact under this is not a fact
ph_floats: []int = null # buoyant bodies' ids
ph_float_k: []float = null # and theirs: buoyancy, linear drag, angular drag, wet
ph_rx: float = 0.0 # where the last phys_resolve put a body
ph_rz: float = 0.0
ph_ids: []int = null
ph_vals: []float = null
ph_facts: Queue<PhysFact> = null