Merge pull request #193 from teamfisk/BoxModelCollision

Removed collision jittering effects
This commit is contained in:
verysecrethero
2016-03-11 10:48:25 +01:00
4 changed files with 10 additions and 2 deletions
+1
View File
@@ -480,6 +480,7 @@ BoxTriRes AABBvsTriangle(const AABB& box,
}
glm::vec3 cornerResolution = (1+t) * diagonal;
cornerResolution = glm::dot(cornerResolution, triNormal) * triNormal;
//Overwrite the smallest resolution if cornerResolution is smaller.
float lenSq = glm::length2(cornerResolution);
if (lenSq < resolveShortest.DistanceSq) {