Fix Collider:getAABB;

This commit is contained in:
bjorn 2017-06-21 18:45:46 -07:00
parent 3744706ade
commit a6ae2bdf6b
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ void lovrColliderGetAABB(Collider* collider, float aabb[6]) {
while ((shape = dBodyGetNextGeom(shape)) != NULL) {
dGeomGetAABB(shape, otherAABB);
aabb[0] = MIN(aabb[0], otherAABB[0]);
aabb[1] = MAX(aabb[0], otherAABB[0]);
aabb[1] = MAX(aabb[1], otherAABB[1]);
aabb[2] = MIN(aabb[2], otherAABB[2]);
aabb[3] = MAX(aabb[3], otherAABB[3]);
aabb[4] = MIN(aabb[4], otherAABB[4]);