constantine1

04-15-2009, 05:22 PM

I've set up this simple script for the rotation on each access to happen every 10 frames with values of -10, 10:

if (frame%10==0)

{

scanner.rotateZ = rand(-10,10);

}

The problem I have is the object pops to the next rotation when it hits that 10th frame versus animating over time to the next rotation. What do I need to add to this to make it animate over time, if it's at all possible? I'm assuming it needs to come up with the randomized values first then plot a course using all 3 axis to get to the next value @ the next 10th frame?

if (frame%10==0)

{

scanner.rotateZ = rand(-10,10);

}

The problem I have is the object pops to the next rotation when it hits that 10th frame versus animating over time to the next rotation. What do I need to add to this to make it animate over time, if it's at all possible? I'm assuming it needs to come up with the randomized values first then plot a course using all 3 axis to get to the next value @ the next 10th frame?