So on the shield it has an attachment point that rotates. Not sure what speed though. But it should rotate at 15rpm and then press a key and the then detach with a bit of z force, right?
Code:
if (ROTATE==1) {//equals 1 if you want to rotate else 0
ANGULAR_VEL = 2 * PI * (.25);
}
if (ROTATE == 0)ANGULAR_VEL = 0;
xp1 = arm1_tip[1] - arm1_tip[0]; normalise(xp1);
xr1 = arm1_tip[2] - arm1_tip[0]; normalise(xr1);
double phi = ANGULAR_VEL * simt;
ROT = _V(sin(phi), cos(phi), 0);
SetAttachmentParams(VStar, _V(0, .085, -1), ROT, _V(0, 0, 1));