X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=JR.pde;fp=JR.pde;h=cb8ba6377366c4867fc1f007f168bf4d83c29a1e;hb=2bb5682284f70c5788cbfcb9cba3c7bf66a104b6;hp=6692baaef5541e48215507a4fddbd3ef1b3080d3;hpb=bae2197a9a134bd45f983cd81ceb635d646620e3;p=SugarCubes.git diff --git a/JR.pde b/JR.pde index 6692baa..cb8ba63 100644 --- a/JR.pde +++ b/JR.pde @@ -75,9 +75,9 @@ class Gimbal extends SCPattern { Ring ring2 = new Ring((hue + hue_delta * 1) % 360, radius2, girth); Ring ring3 = new Ring((hue + hue_delta * 2) % 360, radius3, girth); - projection.reset(model) + projection.reset() // Translate so the center of the car is the origin - .translateCenter(model, 0, 0, 0); + .center(); for (Coord c : projection) { //if (first_run) println(c.x + "," + c.y + "," + c.z); @@ -191,9 +191,9 @@ class Zebra extends SCPattern { float b = (millis() / 1200.f) % (2 * PI); float g = (millis() / 1600.f) % (2 * PI); - projection.reset(model) + projection.reset() // Translate so the center of the car is the origin - .translateCenter(model, 0, 0, 0); + .center(); for (Coord c : projection) { // rotate3d(c, a, b, g);