Skip to content

docs: align architecture and physics API with 2026 layout#285

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/engineering-documentation-updates-3f12
Draft

docs: align architecture and physics API with 2026 layout#285
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/engineering-documentation-updates-3f12

Conversation

@cursor

@cursor cursor Bot commented Jul 12, 2026

Copy link
Copy Markdown

Summary

Weekly documentation pass for recently changed subsystems with stale or incomplete docs.

Docs updated

File Changes
docs/ARCHITECTURE.md Replaced pre-Phase-5e src/ tree with 2026 engine/ / runtime/ / modules/ layout; added Box3D Soft Step frame diagram; fixed VM/FS path references
docs/LUA_API.md Expanded Engine.Physics from outdated "6 functions" stub to full API surface (shapes, constraints, event poll, ragdoll, DMM)
docs/PHYSICS.md Added event bus section (PhysEvent_Poll, pollEvent() fields, type table, Lua loop example)
docs/DISTRICTS.md Fixed canonical paths (modules/world/, runtime/client/world/)
docs/README.md Corrected repository layout note (Phase 5e dropped src/* shims)

Codepaths covered

  • modules/physics/* — Box3D Soft Step, ProcAnim/motor ragdoll, DMM fracture, phys_events
  • runtime/game/g_lua_bindings.cEngine.Physics.* Lua surface
  • modules/world/world_district.cpp + runtime/client/world/cl_district.cpp — district residency
  • engine/core/vm.c, files.c — native module loading references

Key knowledge gaps addressed

  • ARCHITECTURE.md still described Bullet as the physics backend and listed the old monolithic src/ tree
  • LUA_API.md omitted ragdoll/DMM/event APIs added in recent physics commits
  • No documented guidance on pollEvent() vs subscribe() for the physics event bus
  • DISTRICTS.md and docs index still claimed src/* paths were authoritative after Phase 5e

Test plan

  • ./tests/scripts/test_physics.sh (doc symbol + path checks)
  • ./scripts/smoke_test.sh not required (documentation-only PR)
  • No CMake/manifest changes
Open in Web View Automation 

- Rewrite ARCHITECTURE.md directory tree for engine/runtime/modules layout
- Add Box3D Soft Step physics frame diagram and fix stale src/ path refs
- Expand LUA_API.md Engine.Physics (ragdoll, DMM, event poll, full surface)
- Document PhysEvent_Poll types and pollEvent() usage in PHYSICS.md
- Fix DISTRICTS.md and docs/README.md canonical path notes (Phase 5e)

Co-authored-by: Tim Fox <timfox@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant