PhysicsModels idea

This commit is contained in:
Quaternions 2023-11-01 18:31:23 -07:00
parent fc3d72393f
commit cf9063bffc

View File

@ -158,6 +158,10 @@ impl Default for Modes{
struct PhysicsModels{
meshes:Vec<PhysicsMesh>,
models:Vec<PhysicsModel>,
//separate models into Contacting and Intersecting?
//wrap model id with ContactingModelId and IntersectingModelId
//attributes can be split into contacting and intersecting (this also saves a bit of memory)
//can go even further and deduplicate General attributes separately, reconstructing it when queried
attributes:Vec<PhysicsCollisionAttributes>,
model_id_from_wormhole_id:std::collections::HashMap::<u32,usize>,
}