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

Bevy should supply types and patterns for interpolating transforms with fixed timesteps #13773

Closed
alice-i-cecile opened this issue Jun 9, 2024 · 1 comment
Labels
A-Time Involves time keeping and reporting A-Transform Translations, rotations and scales C-Feature A new feature, making something new possible X-Contentious There are nontrivial implications that should be thought through

Comments

@alice-i-cecile
Copy link
Member

What problem does this solve or what need does it fill?

When working with fixed time, the correct pattern is to mutate "gameplay position" data, then interpolate the rendered transform based on the elapsed time.

Bevy does not currently (0.14) do this by default, and does not provide the tools or learning material to do this either.

What solution would you like?

  1. Bevy introduces a trait for gameplay transforms.
  2. Bevy provides a generic system to interpolate positions correctly that requires this trait.
  3. A generic plugin is provided to add this plugin in the correct spot in the schedule.
  4. Most of our examples are moved off fixed time, but a new example and new game are added to demonstrate this pattern.

What alternative(s) have you considered?

We could add our own gameplay transform type(s), but the exact needs will vary quite a bit between game types. I think the trait is probably the right interface.

Additional context

This was raised by Otoya and explained by @inodentry here.

#13306 proposes related functionality for checking simulation time.

@alice-i-cecile alice-i-cecile added C-Feature A new feature, making something new possible A-Transform Translations, rotations and scales A-Time Involves time keeping and reporting X-Contentious There are nontrivial implications that should be thought through labels Jun 9, 2024
@alice-i-cecile
Copy link
Member Author

#1259 previously proposed this. Closing in favor of that issue.

@alice-i-cecile alice-i-cecile closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Time Involves time keeping and reporting A-Transform Translations, rotations and scales C-Feature A new feature, making something new possible X-Contentious There are nontrivial implications that should be thought through
Projects
None yet
Development

No branches or pull requests

1 participant