Skip to content

Commit

Permalink
remove iss and hubble
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-tennert committed Jan 8, 2024
1 parent 298dbec commit 75b0f1e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/bodies.sim

Large diffs are not rendered by default.

Binary file removed assets/models/hubble.glb
Binary file not shown.
Binary file removed assets/models/iss.glb
Binary file not shown.
2 changes: 1 addition & 1 deletion src/billboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::star_renderer::STAR_IMPOSTER_DIVIDER;
use crate::ui::UiState;

const STAR_VISIBILITY_THRESHOLD: f32 = 40_000_000.0; //if the camera's radius is less than this, stars' names will be hidden
const PLANET_VISIBILITY_THRESHOLD: f32 = 1500.0; //if the camera's radius is less than this, planets' names will be hidden
const PLANET_VISIBILITY_THRESHOLD: f32 = 1700.0; //if the camera's radius is less than this, planets' names will be hidden
//const MOON_VISIBILITY_THRESHOLD: f32 = 0.001; //if the camera's radius is less than this, moons' names will be hidden
const RADIUS_DIVIDER: f32 = 3700.0;
const TRANSLATION_MULTIPLIER: f32 = 2000.0;
Expand Down
2 changes: 1 addition & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ fn body_ui(

// Distance to parent
if let Some((parent_pos, _, p_name, _)) = parent {
ui.label(RichText::new(format!("Distance to {}", p_name)).size(16.0).underline());
ui.label(RichText::new(format!("Distance to {} (Center)", p_name)).size(16.0).underline());
let distance_in_m = parent_pos.0.distance(pos.0);
ui.label(format!("{}", format_length(distance_in_m as f32)));
ui.label(format!("{:.3} au", distance_in_m * (M_TO_AU as f64)));
Expand Down

0 comments on commit 75b0f1e

Please sign in to comment.