Controller 001 alpha : Examples : arcball_1



Controller controller;

void setup()
{
  size(200, 200);
  framerate(25);

  lights();
  noStroke();
  fill(255, 0 , 0);

  controller = new Controller(this, "arcballs: 1");
  controller.arcball.setLegend("control cube rotation");
}

void loop()
{
  background(102);

  translate(width / 2, height / 2);

  float[] aa = controller.arcball.getValue();
  rotate(aa[0], aa[1], aa[2], aa[3]);

  box(85);
}

top  |  home  |  bagel papa poule : tookit