pub struct Environment {
pub gravity: f64,
pub temperature: f64,
pub pressure: f64,
pub time_step: f64,
pub boundaries: [f64; 3],
}
impl Environment {
pub fn new() -> Self {
Self {
gravity: 0.0,
temperature: 0.0,
pressure: 0.0,
time_step: 0.0,
boundaries: [0.0, 0.0, 0.0],
}
}
pub fn default() -> Self {
Self {
gravity: 9.81,
temperature: 288.15,
pressure: 1.013,
time_step: 0.1,
boundaries: [10.0, 10.0, 10.0],
}
}
}