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
bevy_tween has built-in support for only interpolating 1D value from A to B but we should support interpolating any value from any arbitrary curve by default.
TweenInterpolationValue(f32) should be generic or have more components. Would be changed to CurveValue<V>(V).
Key data shouldn't be in each interpolator:
eg. struct Translation { start: Vec3, end: Vec3 } -> struct Translation;
Key data would be in a component like struct AtoB<V, C> { a: V, b: V }
Resulting in:
Better foundation for 2D and 3D curves or more
Foundation for morphing (?)
The text was updated successfully, but these errors were encountered:
Multirious
changed the title
Even more generalized curve API that supports 2D, 3D or more
Even more generalized curve API
Jun 10, 2024
bevy_tween has built-in support for only interpolating 1D value from A to B but we should support interpolating any value from any arbitrary curve by default.
TweenInterpolationValue(f32)
should be generic or have more components. Would be changed toCurveValue<V>(V)
.eg.
struct Translation { start: Vec3, end: Vec3 }
->struct Translation;
Key data would be in a component like
struct AtoB<V, C> { a: V, b: V }
Resulting in:
The text was updated successfully, but these errors were encountered: