forget collision for this failure case

This commit is contained in:
Andrew Meadows 2014-05-05 12:31:36 -07:00
parent d2f858100e
commit f6b2b43376

View file

@ -639,6 +639,7 @@ bool sphereAACube(const glm::vec3& sphereCenter, float sphereRadius, const glm::
glm::modf(BA, direction);
lengthDirection = glm::length(direction);
} else if (lengthDirection > sphereRadius) {
collisions.deleteLastCollision();
return false;
}
direction /= lengthDirection;