PhysicsModels idea
This commit is contained in:
parent
fc3d72393f
commit
cf9063bffc
@ -158,6 +158,10 @@ impl Default for Modes{
|
|||||||
struct PhysicsModels{
|
struct PhysicsModels{
|
||||||
meshes:Vec<PhysicsMesh>,
|
meshes:Vec<PhysicsMesh>,
|
||||||
models:Vec<PhysicsModel>,
|
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>,
|
attributes:Vec<PhysicsCollisionAttributes>,
|
||||||
model_id_from_wormhole_id:std::collections::HashMap::<u32,usize>,
|
model_id_from_wormhole_id:std::collections::HashMap::<u32,usize>,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user