PlayerController.h indent fix
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
#include "../core_defs.h"
|
#include "../core_defs.h"
|
||||||
|
|
||||||
using glm::vec3;
|
|
||||||
|
|
||||||
CoordSystem::CoordSystem(glm::ivec3 axisX, glm::ivec3 axisY, glm::ivec3 axisZ)
|
CoordSystem::CoordSystem(glm::ivec3 axisX, glm::ivec3 axisY, glm::ivec3 axisZ)
|
||||||
: axisX(axisX), axisY(axisY), axisZ(axisZ)
|
: axisX(axisX), axisY(axisY), axisZ(axisZ)
|
||||||
{
|
{
|
||||||
@@ -14,9 +12,9 @@ CoordSystem::CoordSystem(glm::ivec3 axisX, glm::ivec3 axisY, glm::ivec3 axisZ)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CoordSystem::transform(AABB& aabb) const {
|
void CoordSystem::transform(AABB& aabb) const {
|
||||||
vec3 X(axisX);
|
glm::vec3 X(axisX);
|
||||||
vec3 Y(axisY);
|
glm::vec3 Y(axisY);
|
||||||
vec3 Z(axisZ);
|
glm::vec3 Z(axisZ);
|
||||||
aabb.a = X * aabb.a.x + Y * aabb.a.y + Z * aabb.a.z;
|
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.b = X * aabb.b.x + Y * aabb.b.y + Z * aabb.b.z;
|
||||||
aabb.a += fix;
|
aabb.a += fix;
|
||||||
|
|||||||
Reference in New Issue
Block a user