-
Object in Z space w/ Random Velocity Part 3
All these scripts were great !!!!!
layers fly back into positive z at random speeds
minV = 100; // min velocity (pixels per second)
maxV = 500;
seedRandom(index,true);
V = random(minV,maxV)
value + [0,0,time*V]layers fly back into positive z at random speeds then, at second 1.5, they come back to zero z
switchTime = 1.5; //time to reverse direction
minV = 100; // min velocity (pixels per second)
maxV = 500;
seedRandom(index,true);
V = random(minV,maxV);
if (time < switchTime){ value + [0,0,time*V]; }else if (time < switchTime*2){ value + [0,0,(2*switchTime - time)*V]; }else{ value } layers fly back into positive z at random speeds then, at second 1.5, they come back and fly into -z switchTime = 1.5; //time to reverse direction minV = 100; // min velocity (pixels per second) maxV = 500; seedRandom(index,true); V = random(minV,maxV); if (time < switchTime){ value + [0,0,time*V]; }else{ value + [0,0,(2*switchTime - time)*V]; } layers start from zero and fly at random speeds into -z minV = 100; // min velocity (pixels per second) maxV = 500; seedRandom(index,true); V = random(minV,maxV); value - [0,0,time*V] Now, and this is the last time on this, I swear: How would it be scripted if I wanted the layers to start from zero z, animate in positive z, each at that random velocity, then switch at second 1.5 to come back to zero z. However, now, at zero z (which would be 3 seconds) their random velocity changes to a much, much smaller range (basically they drift ever so slightly into -z, then, say at 4 seconds or 1 second later they switch back to the original, greater, random velocity range and continue on in -z and out of frame. so:
Sorry, there were no replies found.