+ spherys[0].run(deltaMs);
+ spherys[1].run(deltaMs);
+ spherys[2].run(deltaMs);
+ spherys[3].run(deltaMs);
+
+ sinespin.reset(model)
+
+
+ // Translate so the center of the car is the origin, offset
+ .translateCenter(model, 0, 0, 0)
+ // .scale(1.3,1.3,1.3)
+ // Rotate around the origin (now the center of the car) about an y-vector
+ .rotate(yrot.getValuef(), 0, 1 , 0)
+ .translate(model.cx, model.cy, model.cz);
+
+
+
+
+
+ for (Coord p: sinespin)
+ // for (Point p: model.points)
+ {
+ PVector P = new PVector(p.x, p.y, p.z);
+ color c = 0;
+ c = blendColor(c, spherys[1].spheryvalue(P, .75*model.xMax, model.yMax/2, model.zMax/2), ADD);
+ c = blendColor(c, spherys[0].spheryvalue(P, model.xMax/4, model.yMax/4, model.zMax/2), ADD);
+ c = blendColor(c, spherys[2].spheryvalue(P, model.xMax/2, model.yMax/2, model.zMax/2),ADD);
+
+
+ colors[p.index] = lx.hsb(lx.h(c), lx.s(c), lx.b(c));
+
+
+ }
+ sinespin2.reset(model).
+ translateCenter(model,0,0,0).
+ rotate(yrot2.getValuef(), 0, 1, 0).
+ translate(model.cx,model.cy,model.cz);
+
+ for (Coord p: sinespin2)
+ { color c = 0;
+ PVector P = new PVector(p.x, p.y, p.z);
+ c = blendColor(c, spherys[3].spheryvalue(P, .3*model.xMax, .7*model.yMax, .6*model.zMax),ADD);
+ colors[p.index] = lx.hsb(lx.h(c), lx.s(c), lx.b(c));
+
+ }
+