[jak 2] Export the collision mesh (#2977)

![image](https://github.com/open-goal/jak-project/assets/48171810/266d014b-f6c5-440f-9c3e-ab7c5eafe771)
This commit is contained in:
water111
2023-09-10 17:32:18 -04:00
committed by GitHub
parent 1bd30bce84
commit 9b9fe7a7af
7 changed files with 590 additions and 3 deletions
@@ -239,6 +239,11 @@ level_tools::BspHeader extract_bsp_from_level(const ObjectFileDB& db,
lg::print(" unsupported tree {}\n", draw_tree->my_type());
}
}
if (bsp_header.collide_hash.num_items) {
ASSERT(!got_collide);
extract_collide_frags(bsp_header.collide_hash, all_ties, db.dts, level_data);
}
level_data.level_name = level_name;
return bsp_header;