Added more debug output.

This commit is contained in:
hiker 2017-06-22 09:54:55 +10:00
parent dd9e361289
commit 60bbd4951a

View File

@ -1386,6 +1386,19 @@ void Kart::update(float dt)
m_body->getBroadphaseHandle()->m_collisionFilterGroup = 0;
}
Log::verbose("physicsafter", "%s t %f %f xyz(9-11) %f %f %f v(13-15) %f %f %f steerf(17) %f maxangle(19) %f speed(21) %f steering(23-24) %f %f clock %lf",
getIdent().c_str(),
World::getWorld()->getTime(), dt,
getXYZ().getX(), getXYZ().getY(), getXYZ().getZ(),
getVelocity().getX(), getVelocity().getY(), getVelocity().getZ(), //13,14,15
m_skidding->getSteeringFraction(), //19
getMaxSteerAngle(), //20
m_speed, //21
m_vehicle->getWheelInfo(0).m_steering, //23
m_vehicle->getWheelInfo(1).m_steering, //24
StkTime::getRealTime()
);
// After the physics step was done, the position of the wheels (as stored
// in wheelInfo) is actually outdated, since the chassis was moved
// according to the force acting from the wheels. So the center of the