Open ghost opened 8 years ago
When i drop BoxMeshes on the obj, they just pass through. Here's my code:
loader.load( 'models/model.obj', function ( event ) { var geometry; event.traverse( function ( child ) { if ( child instanceof THREE.Mesh ) { geometry = new THREE.Geometry().fromBufferGeometry( child.geometry ); } } ); var mesh = new Physijs.Mesh( geometry, material ); scene.add(mesh); });
you are not supposed to use Physijs.Mesh directly, it is just an (abstract) base class. You should choose from BoxMesh, SphereMesh, ConcaveMesh, etc.
When i drop BoxMeshes on the obj, they just pass through. Here's my code:
loader.load( 'models/model.obj', function ( event ) { var geometry; event.traverse( function ( child ) { if ( child instanceof THREE.Mesh ) { geometry = new THREE.Geometry().fromBufferGeometry( child.geometry ); } } ); var mesh = new Physijs.Mesh( geometry, material ); scene.add(mesh); });