Mend some stuff
This commit is contained in:
+1
-4
@@ -1,4 +1,4 @@
|
|||||||
//! Deterministic grounded fighter-to-fighter pushing.
|
//! fighter-to-fighter pushing
|
||||||
|
|
||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
|
|
||||||
@@ -45,9 +45,6 @@ fn push_delta(first: Pushbox, second: Pushbox, nudge: FGi32) -> FGi32 {
|
|||||||
(first.center - second.center).signum() * nudge
|
(first.center - second.center).signum() * nudge
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Applies all pair contributions from a position snapshot simultaneously.
|
|
||||||
/// The pair loop intentionally visits every direction: each fighter gets its
|
|
||||||
/// own nudge, just as in Melee.
|
|
||||||
fn calculate_push_deltas(
|
fn calculate_push_deltas(
|
||||||
pushboxes: &[Option<Pushbox>],
|
pushboxes: &[Option<Pushbox>],
|
||||||
stage: &StageCollision,
|
stage: &StageCollision,
|
||||||
|
|||||||
Reference in New Issue
Block a user