Hull sharing (#13)
Save memory when there are many duplicate hulls. Can improve performance in some cases. For consistency with b3MeshData, b3Hull is renamed to b3HullData.
This commit is contained in:
parent
d8fbeb444e
commit
a252f03b19
66 changed files with 881 additions and 549 deletions
|
|
@ -1549,7 +1549,7 @@ public:
|
|||
b3Transform m_transform;
|
||||
b3Vec3 m_translation;
|
||||
b3Capsule m_capsule;
|
||||
b3Hull* m_box;
|
||||
b3HullData* m_box;
|
||||
b3Vec3 m_points[8];
|
||||
b3Vec3 m_triangle[3];
|
||||
};
|
||||
|
|
@ -1796,7 +1796,7 @@ public:
|
|||
}
|
||||
|
||||
b3Transform m_transformB;
|
||||
b3Hull* m_box;
|
||||
b3HullData* m_box;
|
||||
b3BoxHull m_boxA;
|
||||
b3BoxHull m_boxB;
|
||||
b3Vec3 m_points[8];
|
||||
|
|
|
|||
Loading…
Reference in a new issue