make some getters const,

thanks to Mark for the report in Issue 431
This commit is contained in:
erwin.coumans 2010-10-02 00:09:01 +00:00
parent a061306bd2
commit 77b9181d8b

View File

@ -270,12 +270,12 @@ public:
m_totalForce += force*m_linearFactor; m_totalForce += force*m_linearFactor;
} }
const btVector3& getTotalForce() const btVector3& getTotalForce() const
{ {
return m_totalForce; return m_totalForce;
}; };
const btVector3& getTotalTorque() const btVector3& getTotalTorque() const
{ {
return m_totalTorque; return m_totalTorque;
}; };
@ -504,7 +504,7 @@ public:
return m_constraintRefs[index]; return m_constraintRefs[index];
} }
int getNumConstraintRefs() int getNumConstraintRefs() const
{ {
return m_constraintRefs.size(); return m_constraintRefs.size();
} }