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
Unhandled Promise Rejection: TypeError: i.calculateWorldAABB is not a function. (In 'i.calculateWorldAABB(o,n,l.lowerBound,l.upperBound)', 'i.calculateWorldAABB' is undefined)
#146
Open
hg0428 opened this issue
Oct 29, 2023
· 0 comments
letloader=newGLTFLoader();// Load a glb modelloader.load('models/chernovan_nemesis.glb',function(gltf){// Get the model and its animationsletmodel=gltf.scene;letanimations=gltf.animations;console.log(gltf,model);// Add the model to the scenescene.add(model);// Get the geometry of the modelletobject3D=gltf.scene.children[0];console.log(object3D);constshape=threeToCannon(object3D,{type: ShapeType.BOX});letbody=newCANNON.Body({mass: 1,shape: shape});// Add the body to the worldworld.addBody(body);
object3D is indeed a valid Object3D. What is the problem here? I am using the latest versions of Cannon-es and Three.js.
Why won't it work?
The text was updated successfully, but these errors were encountered:
object3D
is indeed a valid Object3D. What is the problem here? I am using the latest versions of Cannon-es and Three.js.Why won't it work?
The text was updated successfully, but these errors were encountered: