Compare commits

...

1 Commits

Author SHA1 Message Date
7c7b63a167 submeshes 2024-02-15 00:26:32 -08:00

View File

@ -60,8 +60,8 @@ where
let mut spam_normal=Vec::new();
let mut spam_vertices=Vec::new();
let mut graphics_groups=Vec::new();
let mut physics_group=model::IndexedPhysicsGroup::default();
let polygon_groups=world_model.faces().enumerate().map(|(polygon_group_id,face)|{
let mut physics_groups=Vec::new();
let polygon_groups:Vec<model::PolygonGroup>=world_model.faces().enumerate().map(|(polygon_group_id,face)|{
let polygon_group_id=model::PolygonGroupId::new(polygon_group_id as u32);
let face_texture=face.texture();
let face_texture_data=face_texture.texture_data();
@ -104,7 +104,9 @@ where
groups:vec![polygon_group_id],
})
}
physics_group.groups.push(polygon_group_id);
physics_groups.push(model::IndexedPhysicsGroup{
groups:vec![polygon_group_id],
});
model::PolygonGroup::PolygonList(model::PolygonList::new(vec![indices]))
}).collect();
(
@ -116,7 +118,7 @@ where
unique_vertices:spam_vertices,
polygon_groups,
graphics_groups,
physics_groups:vec![physics_group],
physics_groups,
},
model::Model{
mesh:mesh_id,