From c41fc78b004eb6911bef63db825e84092c1a1c87 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Sat, 18 Feb 2023 13:49:44 -0800 Subject: [PATCH] Scale the noise down a smidge on the landscape. --- src/bike/body.rs | 3 +-- src/planet.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bike/body.rs b/src/bike/body.rs index ad8bc89..4216915 100644 --- a/src/bike/body.rs +++ b/src/bike/body.rs @@ -16,11 +16,10 @@ pub(super) fn spawn_cyberbike( wheel_conf: Res, mut meshterials: Meshterial, ) { - let altitude = PLANET_RADIUS - 220.0; + let altitude = PLANET_RADIUS - 100.0; let mut xform = Transform::from_translation(Vec3::X * altitude) .with_rotation(Quat::from_axis_angle(Vec3::Z, -89.0f32.to_radians())); - //.with_rotation(Quat::from_axis_angle(Vec3::X, 140.0f32.to_radians())); let right = xform.right() * 350.0; xform.translation += right; diff --git a/src/planet.rs b/src/planet.rs index eb5c8b0..eb19646 100644 --- a/src/planet.rs +++ b/src/planet.rs @@ -86,7 +86,7 @@ fn gen_planet(sphere: Icosphere) -> (Mesh, Collider) { .raw_points() .iter() .map(|&p| { - let disp = noise.get(p.as_dvec3().into()) as f32 * 0.05; + let disp = noise.get(p.as_dvec3().into()) as f32 * 0.04; let pt = p + (p.normalize() * disp); pt.into() })