world model physics groups
world models are not guaranteed to be convex, so this is problematic for physics
This commit is contained in:
parent
2b272e1b7c
commit
ed1250e2f1
@ -194,7 +194,11 @@ pub fn convert<'a>(
|
||||
model::PolygonGroup::PolygonList(model::PolygonList::new(polygon_list))
|
||||
}).collect();
|
||||
|
||||
mb.build(polygon_groups,graphics_groups,vec![])
|
||||
let physics_groups=vec![model::IndexedPhysicsGroup{
|
||||
groups:(0..world_model.face_count as u32).map(model::PolygonGroupId::new).collect(),
|
||||
}];
|
||||
|
||||
mb.build(polygon_groups,graphics_groups,physics_groups)
|
||||
}).collect();
|
||||
|
||||
let mut found_spawn=None;
|
||||
|
Loading…
x
Reference in New Issue
Block a user