mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 05:53:07 +02:00
removing logging around physics
This commit is contained in:
parent
b523b2a81a
commit
694baa81e8
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue