Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

void RigidBody::updateRigidBodyInfo (  ) 

Updates the mass and the moment of inertia info

Definition at line 111 of file mechanicssimulation.cpp.

References MechanicsItem::mechanicsInfoCombined().

{
      if (!p_overallParent)
            return;
      
      m_mass = p_overallParent->mechanicsInfoCombined()->mass;
      m_momentOfInertia = p_overallParent->mechanicsInfoCombined()->momentOfInertia;
}


Generated by  Doxygen 1.6.0   Back to index