feat(ludic.physics): phys_shape_free - a shape let go hands its id to the next, so a ground by chunk grows nothing (23.5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
96423634ad
commit
0c3c0c5e6a
5 changed files with 84 additions and 12 deletions
|
|
@ -37,6 +37,7 @@ export const PH_CAP: int = 512 # contacts drained a step, queries' buffer
|
|||
export state PhysicsState {
|
||||
ph_world: pointer = null
|
||||
ph_shapes: []pointer = new []pointer # a shape id is its place here; null once freed
|
||||
ph_spare: []int = new []int # the freed places, handed out again (shape_ids.ludic)
|
||||
ph_step: float = 0.016666668 # seconds a step
|
||||
ph_sub: int = 1 # collision steps in each
|
||||
ph_max_steps: int = 4 # a slow frame catches up this far and no further
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue