mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 23:11:49 +00:00
PlayerController.h indent fix
This commit is contained in:
parent
e0aa0619f8
commit
d47732ee68
3 changed files with 36 additions and 38 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue