//----------------------------------------------------------------------- // g e t C e n t e r O f M a s s P o s i t i o n //----------------------------------------------------------------------- void TPhysicsObject::getCenterOfMassPosition(TVector3& out) { const btVector3 pos = m_rigidBody->getCenterOfMassPosition(); out.set(pos[0], pos[1], pos[2]); }