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

Even more generalized curve API #25

Open
Multirious opened this issue Jun 10, 2024 · 0 comments · May be fixed by #39
Open

Even more generalized curve API #25

Multirious opened this issue Jun 10, 2024 · 0 comments · May be fixed by #39
Labels
enhancement New feature or request

Comments

@Multirious
Copy link
Owner

Multirious commented 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 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 (?)
@Multirious Multirious changed the title Even more generalized curve API that supports 2D, 3D or more Even more generalized curve API Jun 10, 2024
@Multirious Multirious added the enhancement New feature or request label Jun 10, 2024
@Multirious Multirious linked a pull request Jul 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant