Works, but with memory leaks

This commit is contained in:
Dynamitos
2022-03-26 12:55:04 +01:00
parent cd28e433cc
commit 9130a7961f
23 changed files with 720 additions and 308 deletions
+3 -3
View File
@@ -146,15 +146,15 @@ Vector Transform::getScale() const
Vector Transform::getForward() const
{
return Vector(0, 0, 1) * rotation;
return glm::normalize(Vector(0, 0, 1) * rotation);
}
Vector Transform::getRight() const
{
return Vector(1, 0, 0) * rotation;
return glm::normalize(Vector(1, 0, 0) * rotation);
}
Vector Transform::getUp() const
{
return Vector(0, 1, 0) * rotation;
return glm::normalize(Vector(0, 1, 0) * rotation);
}
bool Transform::equals(const Transform &other, float tolerance)