Check a moving door’s closed footprint against carried meshes
Section titled “Check a moving door’s closed footprint against carried meshes”- Status: current.
- Engine: ue6-main
61e2877e, Linux x86_64, Epic clang 23.1.5 (v27 SDK). - Context: Standalone UE6, C++ moving mesh with a BPVerse interaction override.
- Prerequisites: A movable door with collision disabled when open and carried visual meshes with collision disabled while held.
Symptom
Section titled “Symptom”Coop Zero’s first Linux Development fixture moved the farmer to the open doorway and pressed interact. It logged INTERACT BunkerDoor followed by DOOR_CLOSED with the farmer at the centre of the slab. The door queried cached mesh bounds and the actor-level aggregate bounding box.
Smallest example / reproduction
Section titled “Smallest example / reproduction”Use the Coop Zero slice’s original Step 10 package with -nullrhi -UseFixedTimeStep -FPS=120. While the door is open, switch the farm clock to coop.timescale 0, move the farmer with BugItGo 357 -186 95 0 0 0, and issue coop.interact. The capsule overlaps the volume where the door closes. The first fixture log is Saved/step10-proof.cfLIpB/closed.log.
Solution
Section titled “Solution”Before lifting the door, calculate its closed footprint from StationMesh->CalcBounds(StationMesh->GetComponentTransform()).GetBox(). When asked to close, calculate the farmer’s capsule box from its current transform. Do the same for each bird’s active visual and the item mesh. Refuse an intersection and let the Verse rule call the native shake.
Why it works
Section titled “Why it works”The test uses the shape at the door’s closed pose and current transforms for the obstructions. The capsule is the farmer’s physical footprint. An explicit item-mesh test includes carried objects even when their collision is disabled.
Verified
Section titled “Verified”- Evidence level: runs in editor.
- How:
bash Saved/step10-bounds-lane.shmoved the farmer first into the slab and then outside the slab with a scoop extending into it. Both presses loggedDOOR_REFUSED occupied=1. The reported mesh offset during the shake was(X=0.000000,Y=3.260531,Z=220.000000). A clear doorway loggedDOOR_CLOSED. - Evidence level: runs in packaged build.
- How: After BuildCookRun,
bash Scripts/prove_night_save.shloggedDOOR_REFUSED occupied=1for both obstructions andDOOR_CLOSEDwith the doorway clear inSaved/step10-proof.e5jQ8v/closed.log. Coop Zero commit155ed14records the commands. - Date / by: 2026-11-25, Coop Zero Step 10.
Limits and assumptions
Section titled “Limits and assumptions”The slice uses an axis-aligned door and box intersections. The fixture does not isolate which cached box caused the first failure. The test covers positions set through the Development console.