easeout wheel-rotation
Hi,
How can I ease out a wheel-rotation depending on another action (motion of car)? I could rotate the wheel and easeout the rotation.
rim1.setCenter([1.5,0.32,0.945])
spinAction = vizact.spin(-1,0,0,270,10)
rim1.addAction(spinAction)
yield viztask.waitActionEnd(rim1,spinAction)
easeOut = vizact.spinTo(axisAngle=[1,0,0,0],speed=120, interpolate = vizact.easeOut)
rim1.addAction(easeOut)
But now I'd like the end of rotation to fit the time the cars stop. The cars have different starting positions (and therefore do not always take the same time to get to the stopping point), move to one point and ease out as well.
action1 = vizact.moveTo([-2,0,2],speed=13.89, interpolate=vizact.easeOut)
How can I link these two actions?
Thank you.
Gerda
|