Missed a scale multiplier.

This commit is contained in:
Andrzej Kapolka 2013-12-05 12:02:48 -08:00
parent 0ea0887f66
commit 1edfc90e5e

View file

@ -555,7 +555,7 @@ bool Model::findSpherePenetration(const glm::vec3& penetratorCenter, float penet
} while (ancestorIndex != -1);
}
start = extractTranslation(_jointStates[joint.parentIndex].transform);
startRadius = geometry.joints[joint.parentIndex].boneRadius;
startRadius = geometry.joints[joint.parentIndex].boneRadius * radiusScale;
}
if (findSphereCapsulePenetration(relativeCenter, penetratorRadius, start, end,
(startRadius + endRadius) / 2.0f, bonePenetration)) {