mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:34:07 +02:00
Merge branch 'quiet-es-sim-spam' of github.com:sethalves/hifi into quiet-es-sim-spam
This commit is contained in:
commit
fbd765ab41
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