mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 02:53:51 +00:00
feat(editor): add --bake-wob-collision multi-group WOB→WOC
Sibling of --bake-wom-collision for buildings. Walks every group in a WOB, optionally welds vertices PER GROUP (groups are intentionally separate — rooms with portals between them, so welding across groups would fuse walls that should remain distinct collision surfaces), and appends each to a single WoweeCollision via WoweeCollisionBuilder::addMesh. Same flag surface as the WOM variant: optional [out.woc] output path, --weld <eps> for per-group vertex merge, --steep <deg> for the walkable/steep slope cutoff. Smoke tested on a 1-group cube WOB: 8 verts → 12-triangle WOC with proper bounds (-1,-1,-1)..(1,1,1) and walkable/ steep classification matching the cube face orientations.
This commit is contained in:
parent
dadb08baee
commit
173ad7796e
3 changed files with 107 additions and 1 deletions
|
|
@ -501,6 +501,8 @@ void printUsage(const char* argv0) {
|
|||
std::printf(" Bake every zone in a project into one glTF 2.0 (one mesh per zone)\n");
|
||||
std::printf(" --bake-wom-collision <wom-base> [out.woc] [--weld <eps>] [--steep <deg>]\n");
|
||||
std::printf(" Convert a WOM into a WOC collision file (raycast / walkability mesh) with optional vertex weld\n");
|
||||
std::printf(" --bake-wob-collision <wob-base> [out.woc] [--weld <eps>] [--steep <deg>]\n");
|
||||
std::printf(" Convert a multi-group WOB building into a single WOC collision file (weld is per-group)\n");
|
||||
std::printf(" --audit-watertight <zoneDir|projectDir> [--weld <eps>] [--json]\n");
|
||||
std::printf(" Walk every .wom under root, run welded watertight check; exit code = failure count (CI-friendly)\n");
|
||||
std::printf(" --import-obj <obj-path> [wom-base]\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue