You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! I would like to start with BIG THANKS for creating a library that is great of use to me as a Bevy newbie.
I have dynamically generated vector of animations to perform (interpolated movement on the grid).
It is almost impossible (more on that later) to convert that vector to chain of animations.
Normally one would use fold: vector.iter().fold(component, |component, animation| component.ease_to(animation)
but it doesn't work, because types change:
Hey! I would like to start with BIG THANKS for creating a library that is great of use to me as a Bevy newbie.
I have dynamically generated vector of animations to perform (interpolated movement on the grid).
It is almost impossible (more on that later) to convert that vector to chain of animations.
Normally one would use fold:
vector.iter().fold(component, |component, animation| component.ease_to(animation)
but it doesn't work, because types change:
The best workaround I found is to call
.ease_to
two times to stabilize type intoEasingChainComponent
, and then fold normally:I think it would be interesting to have some way to approach that in non-hacky way. I'm newbie, so I really cannot suggest anything unfortunately.
The text was updated successfully, but these errors were encountered: