added debug statement to show how far the mass of an object is being translated

git-svn-id: svn://anubis/misc/OdeWorld@209 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh 2009-11-16 03:06:28 +00:00
parent a8c8f89e87
commit ad5d978438

View File

@ -520,6 +520,12 @@ void OdeWorld::Object::finalize()
{
if (m_body != 0)
{
#if 0
cerr << "Warning: translating mass by ("
<< (-m_mass.c[0]) << ", "
<< (-m_mass.c[1]) << ", "
<< (-m_mass.c[2]) << ")" << endl;
#endif
dMassTranslate(&m_mass, -m_mass.c[0], -m_mass.c[1], -m_mass.c[2]);
dBodySetMass(m_body, &m_mass);
}