Merge pull request #1281 from 2youyou2/circle-collider

fixed CircleCollider boudingbox calculation
This commit is contained in:
Jare Guo
2016-11-14 10:34:03 +08:00
committed by GitHub
+2 -2
View File
@@ -236,8 +236,8 @@ var CollisionManager = cc.Class({
t.tx = tmpX;
t.ty = tmpY;
aabb.x = tmpX - d;
aabb.y = tmpY - d;
aabb.x = p.x - d;
aabb.y = p.y - d;
aabb.width = d * 2;
aabb.height = d * 2;
}