Merge branch 'quiet-es-sim-spam' of github.com:sethalves/hifi into quiet-es-sim-spam

This commit is contained in:
Seth Alves 2016-06-13 11:14:17 -07:00
commit fbd765ab41
2 changed files with 2 additions and 5 deletions

View file

@ -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)
) {

View file

@ -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);