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
我使用 new THREE.SphereGeometry(200); 创建了一个球
当使用threeToCannon转换它到body时,忘记修改ShapeType.BOX => ShapeType.SPHERE得到了这个错误.所以推测它跟Mesh检测有关
functiontest_createHitShape(scene: THREE.Scene,world: CANNON.World){constgeometry=newTHREE.SphereGeometry(200);constmaterial=newTHREE.MeshBasicMaterial({color: 0x00ff00});constmesh=newTHREE.Mesh(geometry,material);mesh.position.set(500,1000,500);scene.add(mesh);constresult=threeToCannon(mesh,{type: ShapeType.BOX});//<= watch this should be ShapeType.SPHERE//...}
I'm seeing a lot of console.logs being generate from line 539 of https://github.com/pmndrs/cannon-es/blob/master/src/shapes/ConvexPolyhedron.ts#L539
console.log(`clamped: depth=${depth} to minDist=${minDist}`)
Is this suppose to indicate something to me?
The text was updated successfully, but these errors were encountered: