Fixed going through flat large triangles. Velocity affected by collision.

This commit is contained in:
William Moberg
2016-02-01 13:34:39 +01:00
parent 90f05442aa
commit 76274c326e
6 changed files with 267 additions and 112 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ bool AABBvsTriangles(const AABB& box,
const std::vector<RawModel::Vertex>& modelVertices,
const std::vector<unsigned int>& modelIndices,
const glm::mat4& modelMatrix,
const glm::vec3& boxVelocity,
glm::vec3& boxVelocity,
glm::vec3& outResolutionVector);
//Return true if the boxes are intersecting.