mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:44:01 +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();
|
||||
totalPenetration = addPenetrations(totalPenetration, - distance * _worldUpDirection);
|
||||
} else {
|
||||
totalPenetration = addPenetrations(totalPenetration, collision->_penetration);
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
totalPenetration = addPenetrations(totalPenetration, collision->_penetration);
|
||||
}
|
||||
totalPenetration = addPenetrations(totalPenetration, collision->_penetration);
|
||||
}
|
||||
applyHardCollision(totalPenetration, VOXEL_ELASTICITY, VOXEL_DAMPING);
|
||||
_wasStuck = isStuck;
|
||||
|
|
Loading…
Reference in a new issue