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

Interpolation API is confusing #829

Open
cBournhonesque opened this issue Jan 18, 2025 · 1 comment
Open

Interpolation API is confusing #829

cBournhonesque opened this issue Jan 18, 2025 · 1 comment
Labels
A-Interpolation Related to snapshot interpolation

Comments

@cBournhonesque
Copy link
Owner

It's possible to call add_interpolation_fn without calling add_interpolation, which results in no interpolation running at all!

Also to enable visual interpolation on a component but without replicating that component, we have to call

app.add_interpolation::<Transform>(ComponentSyncMode::None);
app.add_interpolation_fn::<Transform>(TransformLinearInterpolation::lerp);

the 1st function creates some redundant systems and is just there to make sure that we register the component with mode None, instead of mode Full (which is the default when we call app.add_interpolation_fn::<Transform>(TransformLinearInterpolation::lerp);)

@cBournhonesque cBournhonesque added the A-Interpolation Related to snapshot interpolation label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Interpolation Related to snapshot interpolation
Projects
None yet
Development

No branches or pull requests

2 participants
@cBournhonesque and others