mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:18:38 +02:00
remove unused variable
This commit is contained in:
parent
c475d5db36
commit
4e7a7667b1
1 changed files with 0 additions and 1 deletions
|
@ -38,7 +38,6 @@ bool AACubeShape::findRayIntersection(RayIntersectionInfo& intersection) const {
|
||||||
// check for tuncated/short ray
|
// check for tuncated/short ray
|
||||||
// maxLength = maximum possible distance between rayStart and center of cube
|
// maxLength = maximum possible distance between rayStart and center of cube
|
||||||
const float maxLength = glm::min(intersection._rayLength, intersection._hitDistance) + r;
|
const float maxLength = glm::min(intersection._rayLength, intersection._hitDistance) + r;
|
||||||
float maxBA2 = maxLength * maxLength;
|
|
||||||
if (a * a + b2 > maxLength * maxLength) {
|
if (a * a + b2 > maxLength * maxLength) {
|
||||||
// ray is not long enough to reach cube's bounding sphere
|
// 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
|
// NOTE: we don't fall in here when ray's length if FLT_MAX because maxLength^2 will be inf or nan
|
||||||
|
|
Loading…
Reference in a new issue