Changed: Usage of getVertices()[y] to getVertex(y)

This commit is contained in:
Foxar
2020-12-21 20:07:34 +01:00
parent cf07cf78c8
commit 8137bd56d8
+3 -3
View File
@@ -83,9 +83,9 @@ u8 MeshMaterial::isInFrustum(Plane *t_frustumPlanes, const Vector3 &position)
for (u8 y = 0; y < 8 && (boxIn == 0 || boxOut == 0); y++) for (u8 y = 0; y < 8 && (boxIn == 0 || boxOut == 0); y++)
{ {
boxCalcTemp.set( boxCalcTemp.set(
boundingBoxObj->getVertices()[y].x + position.x, boundingBoxObj->getVertex(y).x + position.x,
boundingBoxObj->getVertices()[y].y + position.y, boundingBoxObj->getVertex(y).y + position.y,
boundingBoxObj->getVertices()[y].z + position.z); boundingBoxObj->getVertex(y).z + position.z);
if (t_frustumPlanes[i].distanceTo(boxCalcTemp) < 0) if (t_frustumPlanes[i].distanceTo(boxCalcTemp) < 0)
boxOut++; boxOut++;
else else