add special point-of-interest markers for moons

This commit is contained in:
yuni 2024-05-01 17:43:16 +02:00
parent aa95f894ad
commit fd90c1b2f0
4 changed files with 20 additions and 0 deletions

Binary file not shown.

View file

@ -771,6 +771,21 @@ fn spawn_entities(
skeleton::load("point_of_interest", &mut entitycmd, &*asset_server); skeleton::load("point_of_interest", &mut entitycmd, &*asset_server);
} }
if state.is_moon {
let mut entitycmd = commands.spawn((
hud::PointOfInterestMarker(actor_entity),
world::DespawnOnPlayerDeath,
hud::ToggleableHudElement,
SpatialBundle {
visibility: Visibility::Hidden,
..default()
},
NotShadowCaster,
NotShadowReceiver,
));
skeleton::load("marker_satellites", &mut entitycmd, &*asset_server);
}
if state.has_ring { if state.has_ring {
commands.spawn(( commands.spawn((
world::DespawnOnPlayerDeath, world::DespawnOnPlayerDeath,

View file

@ -205,6 +205,7 @@ actor 0 127093 0 moonlet
id thebe id thebe
orbit 221900e3 0.34 orbit 221900e3 0.34
scale 50e3 scale 50e3
moon yes
angularmomentum 0 0.025 0 angularmomentum 0 0.025 0
actor -55e3 44e3 0 suitv2 actor -55e3 44e3 0 suitv2
relativeto thebe relativeto thebe
@ -226,6 +227,7 @@ actor 0 0 0 moonlet
id metis id metis
orbitaround jupiter 128000e3 orbitaround jupiter 128000e3
scale 21.5e3 scale 21.5e3
moon yes
angularmomentum 0 0.025 0 angularmomentum 0 0.025 0
actor 0 0 0 moonlet actor 0 0 0 moonlet
@ -234,6 +236,7 @@ actor 0 0 0 moonlet
id adrastea id adrastea
orbitaround jupiter 129000e3 orbitaround jupiter 129000e3
scale 8.2e3 scale 8.2e3
moon yes
angularmomentum 0 0.025 0 angularmomentum 0 0.025 0
actor 0 0 0 moonlet actor 0 0 0 moonlet
@ -242,6 +245,7 @@ actor 0 0 0 moonlet
id amalthea id amalthea
orbitaround jupiter 181365.84e3 orbitaround jupiter 181365.84e3
scale 83.5e3 scale 83.5e3
moon yes
angularmomentum 0 0.025 0 angularmomentum 0 0.025 0
actor 5000 0 -3000 moonlet actor 5000 0 -3000 moonlet

View file

@ -45,6 +45,7 @@ pub fn asset_name_to_path(name: &str) -> &'static str {
"clippy" => "models/clippy/clippy.glb#Scene0", "clippy" => "models/clippy/clippy.glb#Scene0",
"clippy_ar" => "models/clippy/ar_happy.glb#Scene0", "clippy_ar" => "models/clippy/ar_happy.glb#Scene0",
"whale" => "models/whale.glb#Scene0", "whale" => "models/whale.glb#Scene0",
"marker_satellites" => "models/marker_satellites.glb#Scene0",
"point_of_interest" => "models/point_of_interest.glb#Scene0", "point_of_interest" => "models/point_of_interest.glb#Scene0",
_ => "models/error.glb#Scene0", _ => "models/error.glb#Scene0",
} }