Refactor loading
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
use crate::fighter::{*};
|
||||
use crate::fighter::*;
|
||||
|
||||
pub fn integrate_gravity(velocity: &mut FighterVelocity, attributes: &FighterAttributes) {
|
||||
velocity.y -= attributes.gravity;
|
||||
@@ -15,4 +15,4 @@ pub fn apply_air_motion(
|
||||
// Vertical velocity should be 0 on the ground
|
||||
prev_translation.0 = translation.0;
|
||||
translation.0 += velocity.0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user