remove unused variable

This commit is contained in:
Andrew Meadows 2014-09-12 09:19:03 -07:00
parent c475d5db36
commit 4e7a7667b1

View file

@ -38,7 +38,6 @@ bool AACubeShape::findRayIntersection(RayIntersectionInfo& intersection) const {
// check for tuncated/short ray
// maxLength = maximum possible distance between rayStart and center of cube
const float maxLength = glm::min(intersection._rayLength, intersection._hitDistance) + r;
float maxBA2 = maxLength * maxLength;
if (a * a + b2 > maxLength * maxLength) {
// ray is not long enough to reach cube's bounding sphere
// NOTE: we don't fall in here when ray's length if FLT_MAX because maxLength^2 will be inf or nan