make sure to scale default octree shape collision to meters

This commit is contained in:
ZappoMan 2014-09-25 14:54:06 -07:00
parent ddf7e5604a
commit c880f00a14

View file

@ -1373,6 +1373,7 @@ bool OctreeElement::findSpherePenetration(const glm::vec3& center, float radius,
bool OctreeElement::findShapeCollisions(const Shape* shape, CollisionList& collisions) const {
AACube cube = getAACube();
cube.scale(TREE_SCALE);
return ShapeCollider::collideShapeWithAACubeLegacy(shape, cube.calcCenter(), cube.getScale(), collisions);
}