diff --git a/src/fighter/baked_animation/runtime.rs b/src/fighter/baked_animation/runtime.rs index 1759206..d0fa735 100644 --- a/src/fighter/baked_animation/runtime.rs +++ b/src/fighter/baked_animation/runtime.rs @@ -1,6 +1,7 @@ use std::collections::HashMap; use bevy::prelude::*; +use bevy_ggrs::Rollback; use serde::{Deserialize, Serialize}; use super::BAKED_ANIMATION_FPS; @@ -111,7 +112,8 @@ impl BakedFighterAnimations { } } -#[derive(Component, Clone, Debug, Default)] +#[derive(Component, Clone, Debug, Default, Hash)] +#[require(Rollback)] pub struct FighterBoneMatrices { bone_names: Vec, parents: Vec>, diff --git a/src/fighter/mod.rs b/src/fighter/mod.rs index 3747de5..63c817c 100644 --- a/src/fighter/mod.rs +++ b/src/fighter/mod.rs @@ -250,6 +250,8 @@ impl Plugin for FighterPlugin { .checksum_component_with_hash::() .rollback_component_with_copy::() .checksum_component_with_hash::() + .rollback_component_with_clone::() + .checksum_component_with_hash::() // Debug views. .add_systems( FixedPostUpdate,