PlayerController.h indent fix

This commit is contained in:
MihailRis
2024-03-09 00:22:59 +03:00
parent e0aa0619f8
commit d47732ee68
3 changed files with 36 additions and 38 deletions
+4 -6
View File
@@ -2,10 +2,8 @@
#include "../core_defs.h"
using glm::vec3;
CoordSystem::CoordSystem(glm::ivec3 axisX, glm::ivec3 axisY, glm::ivec3 axisZ)
: axisX(axisX), axisY(axisY), axisZ(axisZ)
: axisX(axisX), axisY(axisY), axisZ(axisZ)
{
fix = glm::ivec3(0);
if (isVectorHasNegatives(axisX)) fix -= axisX;
@@ -14,9 +12,9 @@ CoordSystem::CoordSystem(glm::ivec3 axisX, glm::ivec3 axisY, glm::ivec3 axisZ)
}
void CoordSystem::transform(AABB& aabb) const {
vec3 X(axisX);
vec3 Y(axisY);
vec3 Z(axisZ);
glm::vec3 X(axisX);
glm::vec3 Y(axisY);
glm::vec3 Z(axisZ);
aabb.a = X * aabb.a.x + Y * aabb.a.y + Z * aabb.a.z;
aabb.b = X * aabb.b.x + Y * aabb.b.y + Z * aabb.b.z;
aabb.a += fix;