fix lean calc

This commit is contained in:
Joe Ardent 2025-03-29 13:31:30 -07:00
parent d2ccb14b95
commit 1daae3e5c6
2 changed files with 2 additions and 2 deletions

View file

@ -46,6 +46,6 @@ pub struct CyberInputPlugin;
impl Plugin for CyberInputPlugin {
fn build(&self, app: &mut App) {
app.init_resource::<InputState>()
.add_systems(Update, (update_input));
.add_systems(Update, update_input);
}
}

View file

@ -98,7 +98,7 @@ mod systems {
let tan_theta = (v2_r / gravity).clamp(-FRAC_PI_3, FRAC_PI_3);
if tan_theta.is_normal() {
lean.lean = -tan_theta.atan().clamp(-FRAC_PI_3, FRAC_PI_3);
lean.lean = tan_theta.atan().clamp(-FRAC_PI_3, FRAC_PI_3);
} else {
//lean.lean = 0.0;
}