This commit is contained in:
yuni 2024-05-13 01:00:09 +02:00
parent 2d42edb69c
commit 48f78468c9

View file

@ -13,21 +13,21 @@
use bevy::prelude::*;
pub use bevy::math::{DVec3, DQuat};
pub use std::f32::consts::PI as PI32;
pub use std::f64::consts::PI;
pub const WINDOW_TITLE: &str = "OutFly";
pub const FONT: &str = "fonts/Yupiter-Regular.ttf";
pub use std::f32::consts::PI as PI32;
pub use std::f64::consts::PI;
pub const EPSILON32: f32 = 1e-9;
pub const EPSILON: f64 = 1e-9;
#[inline]
pub fn bool2vis(boolean: bool) -> bevy::prelude::Visibility {
pub fn bool2vis(boolean: bool) -> Visibility {
if boolean {
bevy::prelude::Visibility::Inherited
Visibility::Inherited
} else {
bevy::prelude::Visibility::Hidden
Visibility::Hidden
}
}