Implement hitbox viewer (#81)
Reviewed-on: #81 Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
This commit was merged in pull request #81.
This commit is contained in:
@@ -154,6 +154,7 @@ type FighterBakeProcessor = LoadTransformAndSave<
|
||||
>;
|
||||
|
||||
pub struct BakedAnimationPlugin;
|
||||
pub struct BakedAnimationVisualPlugin;
|
||||
|
||||
pub struct BakedAnimationAssetProcessingPlugin;
|
||||
|
||||
@@ -172,17 +173,27 @@ impl Plugin for BakedAnimationAssetProcessingPlugin {
|
||||
|
||||
impl Plugin for BakedAnimationPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_plugins(BakedAnimationAssetProcessingPlugin)
|
||||
.add_systems(
|
||||
bevy_ggrs::prelude::GgrsSchedule,
|
||||
super::runtime::update_fighter_bone_matrices
|
||||
.in_set(crate::schedule::GameplaySet::Animation),
|
||||
)
|
||||
.add_systems(
|
||||
Update,
|
||||
super::visual_binding::apply_baked_fighter_visual_pose,
|
||||
)
|
||||
.add_observer(super::visual_binding::bind_fighter_visual_bones);
|
||||
app.add_plugins((
|
||||
BakedAnimationAssetProcessingPlugin,
|
||||
BakedAnimationVisualPlugin,
|
||||
))
|
||||
.add_systems(
|
||||
bevy_ggrs::prelude::GgrsSchedule,
|
||||
super::runtime::update_fighter_bone_matrices
|
||||
.in_set(super::BakedAnimationSamplingSet)
|
||||
.in_set(crate::schedule::GameplaySet::Animation),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
impl Plugin for BakedAnimationVisualPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_systems(
|
||||
Update,
|
||||
super::visual_binding::apply_baked_fighter_visual_pose
|
||||
.after(super::BakedAnimationSamplingSet),
|
||||
)
|
||||
.add_observer(super::visual_binding::bind_fighter_visual_bones);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user