You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// scene codevarstack=Composites.stack(100,600-25-18*25,25,18,0,0,function(x,y){returnBodies.rectangle(x,y,25,25,{slop: 0.001,// 默认 0.05restitution: 0});});
并没有什么明显的改变...
将slop值改为0后,一堆刚体像果冻一样 一直动,没有停止。而且文档里有这样一句:
This is required for proper collision response, including friction and restitution effects.
所以设置为0 并不合适。
测试发现水果会碰撞 粒子边界会有一点重叠的情况,大佬 这个如何解决 需要自己在onCollisionStart额外处理么 有没有其他方法
The text was updated successfully, but these errors were encountered: