feat: improved visualisation and x4 data import
This commit is contained in:
@@ -215,6 +215,12 @@ export function resolveSelectionPosition(params: ResolveSelectionPositionParams)
|
||||
return computePlanetLocalPosition(planet, currentWorldTimeSeconds(world, worldTimeSyncMs));
|
||||
}
|
||||
|
||||
if (selection.kind === "moon") {
|
||||
const system = world.systems.get(selection.systemId);
|
||||
const planet = system?.planets[selection.planetIndex];
|
||||
return planet ? computePlanetLocalPosition(planet, currentWorldTimeSeconds(world, worldTimeSyncMs)) : undefined;
|
||||
}
|
||||
|
||||
const system = world.systems.get(selection.id);
|
||||
return system ? scaleGalaxyVector(toThreeVector(system.galaxyPosition)) : undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user