ludic/packages/ludic.nav/index.ludic
Orkuncakilkaya 521efe67db ludic.nav (18.1): a DetourCrowd per kind of walker
The shim builds DetourCrowd from the same pinned Recast & Detour tag. nav_crowd_start puts a crowd on a kind's mesh, with the mesh's tastes as its filters. Walkers are added (snapped to the mesh), sent and sped through verbs, stepped together, and read back into nav_agent_*. nav_crowd_us times the stepping with the OS clock. Dropping a mesh drops its crowd first. On the test meadow, twenty walkers crossing head-on never come closer than their two radii (0.7003 m), all arrive, and a step costs about 12 us. nav 15/15 on the Mac and the PC; the DLL still imports KERNEL32 alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 00:24:30 +03:00

11 lines
459 B
Text

# ludic.nav - a navmesh per kind of walker (a person, a large animal, a small one): built from
# triangles and the cylinders nothing stands in, or loaded from the bytes a bake saved; asked for
# the nearest walkable point, a path as corners, and whether a straight line stays walkable.
module ludic_nav uses ludic_base
numbers float
import "ludic.base"
import "native.ludic"
import "state.ludic"
import "build.ludic"
import "query.ludic"
import "crowd.ludic"