mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 19:12:40 +08:00
Merge pull request #1281 from 2youyou2/circle-collider
fixed CircleCollider boudingbox calculation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user