function was converted to return a bool but this code was not updated

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-10-14 13:28:26 -07:00
parent a6c506c121
commit 3df2ca341f
@@ -48,10 +48,10 @@ namespace WhiteBox
float time;
AZ::Vector3 normal;
const float rayLength = 1000.0f;
const int intersected = AZ::Intersect::IntersectSegmentTriangleCCW(
const bool intersected = AZ::Intersect::IntersectSegmentTriangleCCW(
rayOrigin, rayOrigin + rayDirection * rayLength, p0, p1, p2, normal, time);
if (intersected != 0)
if (intersected)
{
rayIntersectionDistance = time * rayLength;
intersectedTriangleIndex = triangleIndex / 3;