WIP, collision detects too much, no resolving for most cases.

This commit is contained in:
William Moberg
2016-01-21 17:10:36 +01:00
parent 4d5b835352
commit de7c8e9234
6 changed files with 248 additions and 38 deletions
+4
View File
@@ -50,3 +50,7 @@ glm::mat4 Transform::ModelMatrix(EntityID entity, World* world)
return modelMatrix;
}
glm::vec3 Transform::TransformPoint(const glm::vec3& point, const glm::mat4& matrix)
{
return glm::vec3(matrix * glm::vec4(point.x, point.y, point.z, 1));
}