[LayaAir 2.0]2.7.1 enbug: cannon碰撞trigger的enter和exit频繁触发
2.7.1修复了修复Cannon模拟时间不固定引起的bug 导致了碰撞时trigger的enter和exit频繁触发
注释掉_simulate(deltaTime)函数的
this._btDiscreteDynamicsWorld.callBackBody.length = 0;
this._btDiscreteDynamicsWorld.allContacts.length = 0;
这两句就正常了
注释掉_simulate(deltaTime)函数的
this._btDiscreteDynamicsWorld.callBackBody.length = 0;
this._btDiscreteDynamicsWorld.allContacts.length = 0;
这两句就正常了
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
184*****121
赞同来自: