add ring to all gas giants
This commit is contained in:
parent
21fc2a55f5
commit
055d5e9b30
|
@ -828,10 +828,11 @@ fn spawn_entities(
|
||||||
}
|
}
|
||||||
|
|
||||||
if state.has_ring {
|
if state.has_ring {
|
||||||
|
let ring_radius = state.model_scale * (nature::JUPITER_RING_RADIUS / nature::JUPITER_RADIUS) as f32;
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
world::DespawnOnPlayerDeath,
|
world::DespawnOnPlayerDeath,
|
||||||
MaterialMeshBundle {
|
MaterialMeshBundle {
|
||||||
mesh: meshes.add(Mesh::from(Cylinder::new(nature::JUPITER_RING_RADIUS as f32, 1.0))),
|
mesh: meshes.add(Mesh::from(Cylinder::new(ring_radius, 1.0))),
|
||||||
material: materials_jupiter.add(load::JupitersRing {
|
material: materials_jupiter.add(load::JupitersRing {
|
||||||
alpha_mode: AlphaMode::Blend,
|
alpha_mode: AlphaMode::Blend,
|
||||||
ring_radius: nature::JUPITER_RING_RADIUS as f32,
|
ring_radius: nature::JUPITER_RING_RADIUS as f32,
|
||||||
|
|
|
@ -203,6 +203,7 @@ actor 0 0 0
|
||||||
name Saturn
|
name Saturn
|
||||||
planet yes
|
planet yes
|
||||||
sphere yes
|
sphere yes
|
||||||
|
ring yes
|
||||||
physics off
|
physics off
|
||||||
scale 58232e3
|
scale 58232e3
|
||||||
axialtilt 26.73
|
axialtilt 26.73
|
||||||
|
@ -217,6 +218,7 @@ actor 0 0 0
|
||||||
name Uranus
|
name Uranus
|
||||||
planet yes
|
planet yes
|
||||||
sphere yes
|
sphere yes
|
||||||
|
ring yes
|
||||||
physics off
|
physics off
|
||||||
scale 25362e3
|
scale 25362e3
|
||||||
axialtilt 82.23
|
axialtilt 82.23
|
||||||
|
@ -231,6 +233,7 @@ actor 0 0 0
|
||||||
name Neptune
|
name Neptune
|
||||||
planet yes
|
planet yes
|
||||||
sphere yes
|
sphere yes
|
||||||
|
ring yes
|
||||||
physics off
|
physics off
|
||||||
scale 24622e3
|
scale 24622e3
|
||||||
axialtilt 28.32
|
axialtilt 28.32
|
||||||
|
|
Loading…
Reference in a new issue