Allow Creation of Generic TimeStep Animations#76
Closed
Conversation
* Separate type registration from systems registration to prevent multiple type additions when adding the tween systems to different schedules
* Separate the defaultly added plugins from TweenPlugins { schedule }
that way, for example, you could register specific time-steps to interpolate only on specific times (so Fixed steps won't be inteprolated on Update, for example)
no need to do that query since children now automatically get marked with time context
now tweens can be registered to fire on specific schedules per time context (common use: only fire fixed-ticked tweens on fixed update)
so that curves would only be sampled when relevant, and always sampled when relevant
so that, for example, fixed-time animations would only interpolate their tween values on fixed updates. This is crucial for them to work properly (for example, fixed translation tweens should only move their entities on fixed updates)
by adding a generic constructor and having the previous constructor call it defaultly
* separate plugins that should be registered ones, ones that should be registered per schedule and ones that should be registered per schedule and time context. * allow registering system sets per schedule (necessary for them to take effect) * allow adding tween systems to a specific schedule (necessary for the rest to work)
…vy_tween into generic_time_steps
Collaborator
Author
|
Cleaned and moved here: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One may now use
animation_for_timestep::<WhateverTimeStepYoudLike>to, together withTimeRunnerRegistrationPlugin::<WhateverTimeStepYoudLike>, create tweens on arbitrary time steps(I plan to use it for FixedUpdate)