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