Fix delayed FPS collapse from dense imp collision recovery and repeated routing

This commit is contained in:
JariKo
2026-10-29 13:16:22 +02:00
parent e031595dc4
commit f4a01058d6
15 changed files with 257 additions and 21 deletions
@@ -0,0 +1,23 @@
# Iron maiden physics mesh
The visible Meshy model is unchanged. These three concave shapes retain the hollow
body and the two separate moving doors, with small surface detail removed from
physics using a 12 cm world-space vertex grid and duplicate-triangle removal.
| Part | Render triangles | Collision triangles |
| --- | ---: | ---: |
| Body | 63,260 | 2,308 |
| Left door | 13,921 | 579 |
| Right door | 13,895 | 592 |
Generated from the committed `iron_maiden.glb` with
`tools/bake_maiden_collision.gd`. Run from the repository root:
```powershell
& tools/godot/Godot_v4.3-stable_win64_console.exe --path Demon_v0.19 --script "$PWD/tools/bake_maiden_collision.gd"
```
`iron_maiden.gd` attaches these shapes to the corresponding visible mesh nodes.
`mesh_walking.gd` uses them in the playable room; door transforms move the shapes
with their hinges. Background rooms use separate mesh-derived convex pieces to
avoid costly triangle contact recovery for decorative imps.