mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 01:56:54 +02:00
cleaner way to achieve the last commit
This commit is contained in:
parent
2d3592e367
commit
a11b996a51
1 changed files with 2 additions and 4 deletions
|
@ -991,12 +991,10 @@ void MyAvatar::updateCollisionWithVoxels(float deltaTime, float radius) {
|
||||||
}
|
}
|
||||||
distance += capsuleRadius + boundingShape.getHalfHeight();
|
distance += capsuleRadius + boundingShape.getHalfHeight();
|
||||||
totalPenetration = addPenetrations(totalPenetration, - distance * _worldUpDirection);
|
totalPenetration = addPenetrations(totalPenetration, - distance * _worldUpDirection);
|
||||||
} else {
|
continue;
|
||||||
totalPenetration = addPenetrations(totalPenetration, collision->_penetration);
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
totalPenetration = addPenetrations(totalPenetration, collision->_penetration);
|
|
||||||
}
|
}
|
||||||
|
totalPenetration = addPenetrations(totalPenetration, collision->_penetration);
|
||||||
}
|
}
|
||||||
applyHardCollision(totalPenetration, VOXEL_ELASTICITY, VOXEL_DAMPING);
|
applyHardCollision(totalPenetration, VOXEL_ELASTICITY, VOXEL_DAMPING);
|
||||||
_wasStuck = isStuck;
|
_wasStuck = isStuck;
|
||||||
|
|
Loading…
Reference in a new issue