Remove dumb heron import.
This commit is contained in:
parent
5978191691
commit
c0227f4203
1 changed files with 3 additions and 4 deletions
|
@ -2,7 +2,6 @@ use bevy::{
|
||||||
ecs::schedule::StageLabel,
|
ecs::schedule::StageLabel,
|
||||||
prelude::{ResMut, SystemLabel, Vec3, Windows},
|
prelude::{ResMut, SystemLabel, Vec3, Windows},
|
||||||
};
|
};
|
||||||
use heron::rapier_plugin::nalgebra::ComplexField;
|
|
||||||
|
|
||||||
pub mod action;
|
pub mod action;
|
||||||
pub mod camera;
|
pub mod camera;
|
||||||
|
@ -31,9 +30,9 @@ pub fn random_sphere_vec(r: &mut impl rand::prelude::Rng) -> Vec3 {
|
||||||
// Marsaglia (1972) for picking x1 and x2 from (-1, 1) and generating surface
|
// Marsaglia (1972) for picking x1 and x2 from (-1, 1) and generating surface
|
||||||
// points directly if their sum is less than 1.
|
// points directly if their sum is less than 1.
|
||||||
|
|
||||||
let mut x1 = 0.0;
|
let mut x1: f32 = 0.0;
|
||||||
let mut x2 = 0.0;
|
let mut x2: f32 = 0.0;
|
||||||
let mut ssum = 2.0;
|
let mut ssum = std::f32::MAX;
|
||||||
while ssum >= 1.0 {
|
while ssum >= 1.0 {
|
||||||
x1 = r.gen_range(-1.0..=1.0);
|
x1 = r.gen_range(-1.0..=1.0);
|
||||||
x2 = r.gen_range(-1.0..=1.0);
|
x2 = r.gen_range(-1.0..=1.0);
|
||||||
|
|
Loading…
Reference in a new issue