mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
remove some debug prints
This commit is contained in:
parent
4a49ade21b
commit
41c399897a
2 changed files with 2 additions and 5 deletions
|
@ -613,6 +613,8 @@ uint32_t EntityMotionState::getIncomingDirtyFlags() {
|
|||
// we add DIRTY_MOTION_TYPE if the body's motion type disagrees with entity velocity settings
|
||||
int bodyFlags = _body->getCollisionFlags();
|
||||
bool isMoving = _entity->isMovingRelativeToParent();
|
||||
|
||||
// XXX what's right, here?
|
||||
if (((bodyFlags & btCollisionObject::CF_STATIC_OBJECT) && isMoving) // ||
|
||||
// (bodyFlags & btCollisionObject::CF_KINEMATIC_OBJECT && !isMoving)
|
||||
) {
|
||||
|
|
|
@ -75,7 +75,6 @@ void PhysicsEngine::addObjectToDynamicsWorld(ObjectMotionState* motionState) {
|
|||
motionState->setMotionType(motionType);
|
||||
switch(motionType) {
|
||||
case MOTION_TYPE_KINEMATIC: {
|
||||
qDebug() << " --> KINEMATIC";
|
||||
if (!body) {
|
||||
btCollisionShape* shape = motionState->getShape();
|
||||
assert(shape);
|
||||
|
@ -92,8 +91,6 @@ void PhysicsEngine::addObjectToDynamicsWorld(ObjectMotionState* motionState) {
|
|||
break;
|
||||
}
|
||||
case MOTION_TYPE_DYNAMIC: {
|
||||
qDebug() << " --> DYNAMIC";
|
||||
|
||||
mass = motionState->getMass();
|
||||
btCollisionShape* shape = motionState->getShape();
|
||||
assert(shape);
|
||||
|
@ -120,8 +117,6 @@ void PhysicsEngine::addObjectToDynamicsWorld(ObjectMotionState* motionState) {
|
|||
}
|
||||
case MOTION_TYPE_STATIC:
|
||||
default: {
|
||||
qDebug() << " --> STATIC";
|
||||
|
||||
if (!body) {
|
||||
assert(motionState->getShape());
|
||||
body = new btRigidBody(mass, motionState, motionState->getShape(), inertia);
|
||||
|
|
Loading…
Reference in a new issue