improved performance by adding constructors to btTransform/btMatrix3x3 to avoid conversions, compoundshape returns const references (instead of duplicate objects)

Thanks Marten Svanfeldt, Starbreeze Studios
This commit is contained in:
ejcoumans
2007-07-05 23:48:05 +00:00
parent b91886e1c2
commit 5c80ff1f7d
5 changed files with 36 additions and 43 deletions

View File

@@ -58,11 +58,11 @@ public:
return m_childShapes[index];
}
btTransform getChildTransform(int index)
btTransform& getChildTransform(int index)
{
return m_childTransforms[index];
}
const btTransform getChildTransform(int index) const
const btTransform& getChildTransform(int index) const
{
return m_childTransforms[index];
}