-
One Object Smoothly follow another which has Hard movement
Hi
I would like to have an expression that allows me to move object “A” Smoothly
after object “B”Object “B” has expression on position property and it moves hard (it jumps from one position to the next position)
And Object “A” have to move like a trail with 1 sec delay but smoothly without jumping.
I tried different approaches with “ease” but they all failed.
OBJECT B EXPRESSION FOR POSITIONsegMin = .2; //minimum segment duration
segMax = 2; //maximum segment duration
minVal = [10,-200];
maxVal =[0,20];end = 0;
j = 0;
while ( time >= end){
j += 1;
seedRandom(j,true);
start = end;
end += random(segMin,segMax);
}
endVal = random(minVal,maxVal)+value;
seedRandom(j-1,true);
dummy=random(); //this is a throw-away value
startVal = random(minVal,maxVal)+value;
//ease(time,start,end,startVal,endVal)// delete it -> hard move