@Override
  public void draw() {
    g.clear();
    g.color(255);
    _myTouchInteractionManager.draw(g);
    g.clearDepthBuffer();

    g.pushMatrix();
    _myArcball.draw(g);
    g.scale(0.5);
    g.color(255, 0, 0);
    g.pointSize(3);
    g.beginShape(CCDrawMode.POINTS);
    for (CCSkeletonTouchLocation myLocation : _myTouchInteractionManager.locations()) {
      g.vertex(myLocation.position());
    }
    g.endShape();
    for (CCSkeletonTouchLocation myLocation : _myTouchInteractionManager.locations()) {
      g.ellipse(myLocation.position(), myLocation.sourceProximity() * 100);
    }
    g.color(255);
    for (CCSkeleton mySkeleton : _mySkeletonManager.skeletons()) {
      mySkeleton.draw(g);
      CCPlane3f myBodyPlane = mySkeleton.bodyPlane();
      myBodyPlane.drawScale(100);
      myBodyPlane.draw(g);
    }
    for (CCTouchSource mySource : _myTouchInteractionManager.sources()) {
      g.ellipse(mySource.position(), mySource.locationProximity() * 100);
    }
    g.popMatrix();
  }
 public void draw() {
   g.clear();
   g.noDepthTest();
   _myArcball.draw(g);
   g.blend();
   g.color(255, 50);
   _myParticles.renderer().mesh().draw(g);
 }
  @Override
  public void draw() {
    g.clear();
    _myArcball.draw(g);

    g.color(255, 100);
    _myPlane.draw(g);
    for (CCRay3f myRay : _myRays) {
      myRay.draw(g);
    }

    g.clearDepthBuffer();
    g.color(255, 0, 0);
    for (CCVector3f myIntersection : _myIntersections) {
      g.point(myIntersection);
    }
  }
  @Override
  public void update(final float theDeltaTime) {

    if (USE_SKELETON_SENDER) {
      _myReceiver.update(theDeltaTime);
    } else {
      _myOpenNI.transformationMatrix().reset();
      _myOpenNI.transformationMatrix().translate(_cOpenNIX, _cOpenNIY, _cOpenNIZ);
      _myOpenNI.transformationMatrix().rotateX(CCMath.radians(_cRotateX));
      _myOpenNI.transformationMatrix().scale(_cOpenNIScale);
    }

    _mySkeletonManager.update(theDeltaTime);
    g.pushMatrix();
    _myArcball.draw(g);
    g.scale(0.5);
    g.camera().updateProjectionInfos();
    _myTouchInteractionManager.updateLocations(theDeltaTime);
    g.popMatrix();
  }