title: Create CANNON.RigidBody from THREE.Mesh or THREE.Geometry
body: <p>I am creating a <code>THREE.Mesh</code> object using a <code>THREE.JSONLoader</code> object like so:</p>
  
  <pre><code>// Create castle.
  loader.load('/Meshes/CastleTower.js', function(geometry, materials) {
      var tmp_material = new THREE.MeshLambertMaterial();
      THREE.ColorUtils.adjustHSV(tmp_material.color, 0, 0, 0.9);
  
      var castle = new THREE.Mesh(geometry, tmp_material);
      castle.scale.set(0.2, 0.2, 0.2);
      castle.rotation.setX(-Math.PI/2);
      scene.add(castle);
  });
  </code></pre>
  
  <p>Is it possible to create a <code>CANNON.RigidBody</code> from the <code>THREE.Mesh</code> (<code>var castle</code>) or <code>THREE.Geometry</code> (<code>var geometry</code>) object? <sub>Another way you could read this is: How do you make any custom <code>THREE.Mesh</code> "solid"?</sub></p>
  
  <h2>Update</h2>
  
  <p>I used Blender, created a new castle from boxes, and <a href="https://github.com/mrdoob/three.js/tree/master/utils/exporters/blender" rel="nofollow">exported</a> it to the Three.js format. If you set the mass to <code>0</code> of a <code>CANNON.Body</code>, it remains static. <a href="https://github.com/Invisiball/Invisiball/blob/master/public/js/game.js#L408" rel="nofollow">This</a> worked out perfectly...</p>