box2d 碰撞检测 两小球 相隔 十几个像素 就检测到碰撞了 。。新手。。求高手指点万分感谢~

由于我只用监控一个物体 ,于是我用了 这个:

for(b2ContactEdge* ce= ballBody->GetContactList();ce;ce=ce->next){

		if (ce->other == prop5) {
			//do something。。。	
		}

}
可是为什么 ballBody 跟 prop5 还相差 十几个像素的 时候 if 语句就执行了呢 ?
int32 velocityIterations = 10;
int32 positionIterations = 10;
这两个数字 怎么调 都一样 。。。 求解 万分感谢~~

关键是球的shape,与图片无关,你球的半径是多少?

楼主你问题怎么解决的啊 我也刚学box2d ,遇到同样问题了。能给点帮助吗?理解万岁