Added some (commented out) debug lines that are useful when comparing

different kart physics.
This commit is contained in:
hiker 2015-02-17 17:14:53 +11:00
parent 198d6470d7
commit ada5a20445

View File

@ -1093,6 +1093,19 @@ void Kart::eliminate()
*/
void Kart::update(float dt)
{
#ifdef DEBUG_TO_COMPARE_KART_PHYSICS
// This information is useful when comparing kart physics, e.g. to
// see top speed, acceleration (i.e. time to top speed) etc.
Log::verbose("physics", "%s t %f xyz %f %f %f %f v %f %f %f %f maxv %f",
getIdent().c_str(),
World::getWorld()->getTime(),
getXYZ().getX(), getXYZ().getY(), getXYZ().getZ(),
getXYZ().length(),
getVelocity().getX(), getVelocity().getY(), getVelocity().getZ(),
getVelocity().length(),
m_max_speed->getCurrentMaxSpeed());
#endif
if ( UserConfigParams::m_graphical_effects )
{
// update star effect (call will do nothing if stars are not activated)