hide orbits of hidden planets
This commit is contained in:
@@ -140,7 +140,7 @@ public class PlanetRenderer implements Disposable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void renderOrbit(Planet planet){
|
private void renderOrbit(Planet planet){
|
||||||
if(planet.parent == null) return;
|
if(planet.parent == null || !planet.visible()) return;
|
||||||
|
|
||||||
Vec3 center = planet.parent.position;
|
Vec3 center = planet.parent.position;
|
||||||
float radius = planet.orbitRadius;
|
float radius = planet.orbitRadius;
|
||||||
|
|||||||
Reference in New Issue
Block a user