removing logging around physics

This commit is contained in:
samcake 2018-04-06 16:12:02 -07:00
parent b523b2a81a
commit 694baa81e8
2 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ void PhysicsBoundary::run(const workload::WorkloadContextPointer& context, const
auto entity = space->getOwner(change.proxyId).get<EntityItemPointer>(); auto entity = space->getOwner(change.proxyId).get<EntityItemPointer>();
if (entity) { if (entity) {
simulation->changeEntity(entity); simulation->changeEntity(entity);
qCDebug(physics) << change.proxyId << " : " << "'" << entity->getName() << "' " << (uint32_t)(change.prevRegion) << " --> " << (uint32_t)(change.region); // qCDebug(physics) << change.proxyId << " : " << "'" << entity->getName() << "' " << (uint32_t)(change.prevRegion) << " --> " << (uint32_t)(change.region);
} }
} }
} }

View file

@ -72,7 +72,7 @@ uint32_t PhysicsEngine::getNumSubsteps() {
// private // private
void PhysicsEngine::addObjectToDynamicsWorld(ObjectMotionState* motionState) { void PhysicsEngine::addObjectToDynamicsWorld(ObjectMotionState* motionState) {
qCDebug(physics) << "templog addObject" << (void*)(motionState); // TODO: remove this // qCDebug(physics) << "templog addObject" << (void*)(motionState); // TODO: remove this
assert(motionState); assert(motionState);
btVector3 inertia(0.0f, 0.0f, 0.0f); btVector3 inertia(0.0f, 0.0f, 0.0f);
@ -194,7 +194,7 @@ void PhysicsEngine::removeObjects(const VectorOfMotionStates& objects) {
for (auto object : objects) { for (auto object : objects) {
btRigidBody* body = object->getRigidBody(); btRigidBody* body = object->getRigidBody();
if (body) { if (body) {
qCDebug(physics) << "removeObject" << (void*)(body->getMotionState()); // TODO: remove this // qCDebug(physics) << "removeObject" << (void*)(body->getMotionState()); // TODO: remove this
removeDynamicsForBody(body); removeDynamicsForBody(body);
_dynamicsWorld->removeRigidBody(body); _dynamicsWorld->removeRigidBody(body);