Make MoveAlongPath be reversible #3242
Closed
marcell-ziegler
started this conversation in
Suggestions and Proposals
Replies: 1 comment 2 replies
-
Is it really necessary to have a specialized function for everything? Here are two solutions to what you are asking for:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently tried to make an animation that has a
Dot
moving along a graph one way, then the other. I noticed that there are some rate functions in the utilities which are reversed such asthere_and_back
but there are only two of these and for example there is no linear one. From what I can see the base classAnimation
has support for reversing any function with thereverse_rate_func
parameter, but the inner workings of it are beyond me. This would in theory let you split the action into two animations in aSucession
for example, butMoveAlongPath
does not seem to respect this parameter for some reason. I made a jury-rigged solution by subclassing:This works as intended for my use case but i am not confident enough to incorporate it into a proper pull request. Thus, I am leaving it here as a feature request if it is deemed worthy and someone on the dev team gets time to implement it properly.
Beta Was this translation helpful? Give feedback.
All reactions