Profiles and workflow

This commit is contained in:
2025-07-05 16:24:42 -04:00
parent bc0ef5fbfa
commit a48987a81b
3 changed files with 16 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
use std::f32::{EPSILON, consts::FRAC_PI_2};
use std::f32::consts::FRAC_PI_2;
use bevy::{input::mouse::MouseMotion, prelude::*};
use bevy_rapier3d::prelude::*;
@@ -55,7 +55,7 @@ fn apply_gravity(
vel.0 += grav * scale.0 * 9.47 * time.delta_secs();
} else {
let dot = vel.0.dot(grav);
if dot > EPSILON {
if dot > f32::EPSILON {
vel.0 -= dot * grav;
}
}