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

Incremental Cycle doesn't work properly with Rotation Tween. #19

Closed
Alvarden15 opened this issue Nov 4, 2023 · 3 comments
Closed

Incremental Cycle doesn't work properly with Rotation Tween. #19

Alvarden15 opened this issue Nov 4, 2023 · 3 comments

Comments

@Alvarden15
Copy link

Hello there!
Not sure if anyone else has this issue, too, but for the LocalRotation tween, when i use the Incremental Cycle Mode, the cycles don't work properly. It loops only once, then it rewinds like it was set to Yoyo Cycle Mode, and then it stops.

This only happens to me with any Tween that affects Rotation. It works fine with other tweens like Position.

Here is a sample of the code i used.

Tween.LocalRotation(rotateTransform, new Vector3(0, 0, 180), 0.3f, Ease.Linear, -1, CycleMode.Incremental, useUnscaledTime: true);

Thank you for your time.

@Alvarden15 Alvarden15 changed the title Incremental Cycle doesn't work properly. Incremental Cycle doesn't work properly with Rotation Tween. Nov 4, 2023
@KyryloKuzyk
Copy link
Owner

KyryloKuzyk commented Nov 4, 2023

I can confirm this is a bug with Incremental tweens that animate Quaternions. Because Tween.LocalRotation() translates the Vector3 rotation to Quaternion, this method is also affected by the bug. Huge thanks for reporting the issue!

@KyryloKuzyk
Copy link
Owner

I fixed the bug in version 1.0.16. Could you please update and tell me if it fixes the issue for you?

@Alvarden15
Copy link
Author

I fixed the bug in version 1.0.16. Could you please update and tell me if it fixes the issue for you?

It's fixed now. Thank you!

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