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 |
wheel rotation
Hi there,
I'm still struggeling with the posted question... Maybe it's possible to stop the two actions at the same time with the "viz.ANIMATION_END_EVENT" command ? thanks for helping |
I think this should fix your problem:
Code:
import viz |
Frank, that only starts/stops the spinning, it doesn't ease-in or out.
I think a more flexible solution would be to wire -in 3ds max terms- the wheel rotation to the car translation. I can't really remember how it works best exactly, but here's a quick and dirty version, based on Frank's code: Code:
import viz |
All times are GMT -7. The time now is 09:43 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC