-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional option to tween by speed #25
Comments
Going at a constant speed isn't a tween. Tweening in animation is a short for inbetweening and it's the process of generating images that go between keyframes. Keyframes are on a timeline so having an option to tween by speed doesn't make sense for a tweening library. It's sounds like you want something like Unity's MoveTowards function. If so, you can get the code from the Unity GitHub repo where they've made their C# code public. |
Well I've seen plenty of tweening libraries with this option before, even if it's not technically tweening. |
Can you link to them please? It will help with working out what API people are used to if we do implement something like this. |
Well if the user provides the speed you can get the time with Hm let's see an example http://dotween.demigiant.com/documentation.php. Search for |
Only if the interpolator is linear. |
It would be nice if we could pass a speed parameter for tweening instead of duration. It would be useful if you want to move from point x to point y at a constant speed regardless of the distance of said points. With only the duration, a movement tween can happen faster or slower depending on the distance between point x and point y.
The text was updated successfully, but these errors were encountered: