diff --git a/src/bike/body.rs b/src/bike/body.rs index be51f86..d841c14 100644 --- a/src/bike/body.rs +++ b/src/bike/body.rs @@ -16,8 +16,7 @@ pub(super) fn spawn_cyberbike( wheel_conf: Res, mut meshterials: Meshterial, ) { - //let altitude = PLANET_RADIUS - 180.0; - let altitude = PLANET_RADIUS + 10.0; // smoothland + let altitude = PLANET_RADIUS - 180.0; let mut xform = Transform::from_translation(Vec3::X * altitude) .with_rotation(Quat::from_axis_angle(Vec3::Z, -89.0f32.to_radians())); diff --git a/src/planet.rs b/src/planet.rs index e9076ef..8e6807b 100644 --- a/src/planet.rs +++ b/src/planet.rs @@ -87,7 +87,7 @@ fn gen_planet(sphere: Icosphere) -> (Mesh, Collider) { .iter() .map(|&p| { let disp = noise.get(p.as_dvec3().into()) as f32 * 0.04; - let pt = p; // + (p.normalize() * disp); // smoothland + let pt = p + (p.normalize() * disp); pt.into() }) .collect::>();