A chunk's trunks and boulders put in and taken out made a new shape each time and freed none. The table is by the body's index, made once at the world's size. tests/reuse_test: 1000 owned bodies put and removed hold no more shapes and 32 bytes of heap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
493 B
Text
16 lines
493 B
Text
# ludic.physics - a physics world over Jolt: shapes as handles it keeps, bodies by id, queries,
|
|
# water that floats a body, and the contacts that matter as facts. Fixed 1/60 steps.
|
|
module ludic_physics uses ludic_base
|
|
numbers float
|
|
import "ludic.base"
|
|
import "native.ludic"
|
|
import "state.ludic"
|
|
import "shape_ids.ludic"
|
|
import "owned.ludic"
|
|
import "shapes.ludic"
|
|
import "bodies.ludic"
|
|
import "queries.ludic"
|
|
import "water.ludic"
|
|
import "walker.ludic"
|
|
import "hull.ludic"
|
|
import "system.ludic"
|