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:
parent
a8c8f89e87
commit
ad5d978438
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user