hide orbits of hidden planets

This commit is contained in:
DeltaNedas 2020-10-17 12:10:52 +01:00
parent 97b0461d7f
commit 05b77d787e

View File

@ -140,7 +140,7 @@ public class PlanetRenderer implements Disposable{
}
private void renderOrbit(Planet planet){
if(planet.parent == null) return;
if(planet.parent == null || !planet.visible()) return;
Vec3 center = planet.parent.position;
float radius = planet.orbitRadius;