10 lines
1,012 B
Markdown
10 lines
1,012 B
Markdown
# Ymir Agent Instructions
|
|
|
|
Ymir provides the 3D SoA rigid-body and PBD/SPH particle boundary (`Ymir.Box3D` and `native/Ymir.Box3D`) around pinned Box3D (`extern/box3d`), consumed by `Lodur` and `BadDaySimulator`. Box3D owns rigid integration, collision geometry, broadphase, joints, and contact solving.
|
|
|
|
Architecture constraints:
|
|
|
|
- Do not reimplement Box3D rigid integration, collision geometry, broadphase, queries, or solver behavior in managed code.
|
|
- Keep `native/Ymir.Box3D` free of gameplay policy: Box3D and the particle solver decide physics; consumers (`Lodur`, `BadDaySimulator`) own gameplay policy, limb control, and teardown rules.
|
|
- Read `docs/soa-world.md` before changing ABI 21 structs or lane layouts; update both native `ymir_box3d_soa.c` size/ABI checks and managed `Box3DSoaWorld.cs` structs together.
|
|
- Add tests in `tests/Ymir.Box3D.Soa.Tests/` at the layer where the invariant lives, and run the suite on a build host matching the target platform (Linux builds/tests run on Yggdrasil).
|