src/helpers/hand-body.js
function HandBody (el, handComponent) {
  this.el = el;
  this.handComponent = handComponent;
  this.system = this.el.sceneEl.systems.leap;
  this.physics = this.el.sceneEl.systems.physics;
  this.physics.addComponent(this);

  this.palmBody = /** @type {CANNON.Body} */ null;
  this.fingerBodies = /** @type {{string: CANNON.Body}} */ {};
}
function HandBody (el, handComponent) {
  this.el = el;
  this.handComponent = handComponent;
  this.system = this.el.sceneEl.systems.leap;
  this.physics = this.el.sceneEl.systems.physics;
  this.physics.addComponent(this);

  this.palmBody = /** @type {CANNON.Body} */ null;
  this.fingerBodies = /** @type {{string: CANNON.Body}} */ {};
}
function HandBody ( el , handComponent ) { this . el = el ; this . handComponent = handComponent ; this . system = this . el . sceneEl . systems . leap ; this . physics = this . el . sceneEl . systems . physics ; this . physics . addComponent ( this ) ; this . palmBody = /** @type {CANNON.Body} */ null ; this . fingerBodies = /** @type {{string: CANNON.Body}} */ { } ; }
CANNON body controller for a single Leap Motion hand.
CANNON body controller for a single Leap Motion hand .