diff --git a/src/cmd.rs b/src/cmd.rs index 97518ce..3925c7f 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -1307,6 +1307,8 @@ fn spawn_entities( let state = &state_wrapper.0; let mut rotation = state.rotation; + let is_jupiter = state.id == ID_JUPITER; + // Preprocessing let mut absolute_pos = if let Some(id) = &state.relative_to { match id2pos.0.get(&id.to_string()) { @@ -1389,7 +1391,8 @@ fn spawn_entities( None }; rotation = Quat::from_rotation_x(-90f32.to_radians()) * rotation; - let sphere_handle = meshes.add(Sphere::new(1.0).mesh().uv(128, 128)); + let radius = if is_jupiter { 0.995 } else { 1.0 }; + let sphere_handle = meshes.add(Sphere::new(radius).mesh().uv(128, 128)); let sphere_material_handle = materials.add(StandardMaterial { base_color_texture: sphere_texture_handle, perceptual_roughness: 1.0,