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

@@ -42,6 +42,19 @@ public:
m_origin(c)
{}
SIMD_FORCE_INLINE btTransform (const btTransform& other)
: m_basis(other.m_basis),
m_origin(other.m_origin)
{
}
SIMD_FORCE_INLINE btTransform& operator=(const btTransform& other)
{
m_basis = other.m_basis;
m_origin = other.m_origin;
return *this;
}
SIMD_FORCE_INLINE void mult(const btTransform& t1, const btTransform& t2) {
m_basis = t1.m_basis * t2.m_basis;