THREE.CannonDebugRenderer=function(e,t,s){s=s||{},this.scene=e,this.world=t,this._meshes=[],this._material=new THREE.MeshBasicMaterial({color:65280,wireframe:!0}),this._sphereGeometry=new THREE.SphereGeometry(1),this._boxGeometry=new THREE.BoxGeometry(1,1,1),this._planeGeometry=new THREE.PlaneGeometry(10,10,10,10),this._cylinderGeometry=new THREE.CylinderGeometry(1,1,10,10)},THREE.CannonDebugRenderer.prototype={tmpVec0:new CANNON.Vec3,tmpVec1:new CANNON.Vec3,tmpVec2:new CANNON.Vec3,tmpQuat0:new CANNON.Vec3,update:function(){for(var e=this.world.bodies,t=this._meshes,s=this.tmpVec0,a=this.tmpQuat0,r=0,n=0;n!==e.length;n++)for(var c=e[n],o=0;o!==c.shapes.length;o++){var i=c.shapes[o];this._updateMesh(r,c,i),(h=t[r])&&(c.quaternion.vmult(c.shapeOffsets[o],s),c.position.vadd(s,s),c.quaternion.mult(c.shapeOrientations[o],a),h.position.copy(s),h.quaternion.copy(a)),r++}for(n=r;n