src/index.js
function () {
    var body = this.body;
    var el = this.el;
    el.setAttribute('position', body.position);
    el.setAttribute('rotation', {
      x: deg(body.quaternion.x),
      y: deg(body.quaternion.y),
      z: deg(body.quaternion.z)
    });
  }
function () {
    var body = this.body;
    var el = this.el;
    el.setAttribute('position', body.position);
    el.setAttribute('rotation', {
      x: deg(body.quaternion.x),
      y: deg(body.quaternion.y),
      z: deg(body.quaternion.z)
    });
  }
function ( ) { var body = this . body ; var el = this . el ; el . setAttribute ( 'position' , body . position ) ; el . setAttribute ( 'rotation' , { x : deg ( body . quaternion . x ) , y : deg ( body . quaternion . y ) , z : deg ( body . quaternion . z ) } ) ; }
Copy CANNON rigid body properties to THREE object3D.
Copy CANNON rigid body properties to THREE object3D .