Exemple #1
0
  /** Initialise the coordinates for the default body poses (used when we cannot see a user). */
  private UserData setUpPose(float[] x, float[] y) {
    UserData pose = new UserData(-1);

    for (int i = 0; i < x.length; i++) {
      float cx = (float) (x[i] * MyWorld.SCALE);
      float cy = (float) (y[i] * MyWorld.SCALE);
      pose.setJoint(i, new Joint(i, 1.0f, null, new Point3D(cx, cy, 0.0f)));
    }

    return pose;
  }