Skip to content
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

LITMOTION seems to be closer to the bottom of the animation mechanism than other TWEEN interfaces? #133

Open
Container-Zero opened this issue Sep 13, 2024 · 1 comment

Comments

@Container-Zero
Copy link

Hello,

I’ve noticed that LitMotion seems to operate closer to the core mechanics of animation compared to other Tween libraries.

For instance, while LitMotion provides excellent performance, it appears to come at the cost of increased complexity during development.

In other Tween libraries, when I want to move an object, I can simply set the target position, and the system automatically uses the current position as the starting point. However, in LitMotion, the starting point seems to be mandatory, which means I need to use something like transform.localPosition every time as the starting point for the animation.

Additionally, if an animation is triggered before a previous one finishes, I expect the new animation to automatically override the previous one. Other Tween libraries handle this automatically, but in LitMotion, I have to manually manage this process by using handles.Cancel() to stop the previous animation before starting a new one. Otherwise, multiple animations get stacked, causing erratic movement.

Combining both scenarios, if I want an object to always start moving from its current position and automatically transition to new animations, it seems that I end up writing more code compared to other libraries. The need to set and manage additional parameters increases the code's complexity, especially in environments with intricate movements.

From this perspective, the development complexity seems to increase, particularly in more complex motion scenarios. The manual management of these variables can lead to code that feels heavier compared to what I would write in libraries like LeanTween or PrimeTween.

I’m not sure if I’m understanding this correctly, so I’d really appreciate your guidance on this matter.

Thank you so much for your time!

@laicasaane
Copy link

Hi your issue piques my curosity. Could you spend some time producing a demo code for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants