I know through Physijs.BoxMesh Can let three.js The model has a physical effect
new Physijs.BoxMesh(Geometry, material, 1)
But now my model is imported through objloader. How can I make it have physical effect
var objLoader = new THREE.OBJLoader();
objLoader.load(baseUrl+"sofa/1/file.obj", function(mesh){
mesh.scale.set(0.115, 0.115, 0.115);
mesh.rotateY(-Math.PI/2);
mesh.position.set(-105, 0, 80);
scene.add(mesh);
})
You could extract the geometry from the loaded
mesh
and use it to create your ownPhysijs.BoxMesh
: