> Camera_X = sin((FrameCounter-1)*(2*pi)/149)*1195-100
oops, that's 360 deg, while we needed 90 deg, so:
Camera_X = sin((FrameCounter-1)*(pi/2.0)/149)*1195-100
or:
Camera_X_start = -100;
Camera_X_end = 1095;
Camera_X_length = Camera_X_end-Camera_X_start;
Camera_X =
sin((FrameCounter-1)*(pi/2.0)/149)*Camera_X_length-Camera_X_start;
(a #declare pi2 = pi/2.0; at the top may come in handy)
Post a reply to this message
|