Add shifting ECB based on bone positions (melee-like)
CI / build-and-test (pull_request) Successful in 1m33s
CI / production-build (pull_request) Successful in 10m48s

This commit is contained in:
2026-09-25 15:45:55 +02:00
parent d521461625
commit 0cb81ec2e9
17 changed files with 317 additions and 115 deletions
+9 -1
View File
@@ -83,7 +83,6 @@ impl FighterStateImpl for HitstunState {
match self.hitstop_kind {
HitstopStateKind::Grounded => {}
HitstopStateKind::Airborne => {
ctx.surface.leave_ground();
air::integrate_gravity(ctx.velocity, ctx.fighter_attributes, false);
}
}
@@ -126,4 +125,13 @@ impl FighterStateImpl for HitstunState {
HitstopStateKind::Airborne => false,
}
}
fn surface_policy(&self) -> super::SurfacePolicy {
match self.hitstop_kind {
HitstopStateKind::Grounded => super::SurfacePolicy::Grounded,
HitstopStateKind::Airborne => super::SurfacePolicy::Airborne(
crate::fighter::surface::EcbLockPolicy::StartOnDetach,
),
}
}
}