Bendzae / bevy_replicon_snap

High-level networking library that extends the bevy_replicon library to allow snapshot interpolation and client-side prediction
MIT License
23 stars 10 forks source link

Implement `Interpolate` for basic `bevy` types #6

Open Umatriz opened 8 months ago

Umatriz commented 8 months ago

I think there should be an implementation of Interpolate trait for basic bevy types. The most obvious example is Transform. It might be behing a feature flag so people will turn it on if needed.

Bendzae commented 7 months ago

True, it would make sense for the basic bevy types. If you have time, feel free to create a PR for that. Otherwise I might add it in the future.

Olle-Lukowski commented 6 months ago

I think I will go ahead and implement this, I need it for my own project anyway.

Olle-Lukowski commented 6 months ago

For now I will just do transform, I will open a PR so if I need to change anything, let me know.

Darkluke1111 commented 2 months ago

Is a feature flag even necessary for this? I feel like it would be opt-in even without a flag since you still need to call app.replicate_interpolated::<Transform>() to use the interpolation.