Profiles and workflow
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user