Add support for zone entities in bridge reification

This commit is contained in:
MayaTheShy
2025-11-16 21:57:31 -05:00
parent 645ea243a3
commit 64e554f54a

View File

@@ -198,6 +198,18 @@ impl Reify for BridgeState {
.intensity(intensity);
Some(light.build())
}
7 => {
// Zone entity: use asteroids Zone element
eprintln!("[bridge/reify] Zone entity type detected for node {}.", id);
let color = ast::elements::RgbaLinear::new(
node.color[0], node.color[1], node.color[2], node.color[3]
);
let size = glam::Vec3::from(node.dimensions);
let zone = ast::elements::Zone::new()
.color(color)
.size([size.x, size.y, size.z]);
Some(zone.build())
}
_ => {
match Model::direct(&model_path) {
Ok(mut model) => {