Initial work on proper character movement
This commit is contained in:
@@ -28,3 +28,16 @@ pub fn fighter_debug(
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn update_config(
|
||||
mut config_store: ResMut<GizmoConfigStore>,
|
||||
keyboard: Res<ButtonInput<KeyCode>>,
|
||||
real_time: Res<Time<Real>>,
|
||||
mut virtual_time: ResMut<Time<Virtual>>,
|
||||
) {
|
||||
if keyboard.just_pressed(KeyCode::KeyT) {
|
||||
for (_, config, _) in config_store.iter_mut() {
|
||||
config.depth_bias = if config.depth_bias == 0. { -1. } else { 0. };
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user