mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 03:00:58 -06:00
32 lines
887 B
Lua
32 lines
887 B
Lua
local transforms = asset.require("scene/solarsystem/planets/earth/transforms")
|
|
local debugHelper = asset.require("util/debug_helper")
|
|
local sun_transforms = asset.require("scene/solarsystem/sun/transforms")
|
|
|
|
local sunRadius = 6.957E8
|
|
local earthRadius = 6.371E6
|
|
|
|
debugHelper.registerCartesianAxes(asset, {
|
|
Parent = transforms.EarthBarycenter.Identifier,
|
|
Scale = earthRadius * 3.5
|
|
})
|
|
|
|
debugHelper.registerCartesianAxes(asset, {
|
|
Parent = transforms.EarthInertial.Identifier,
|
|
Scale = earthRadius * 2.5
|
|
})
|
|
|
|
debugHelper.registerCartesianAxes(asset, {
|
|
Parent = transforms.EarthIAU.Identifier,
|
|
Scale = earthRadius * 1.5
|
|
})
|
|
|
|
debugHelper.registerCartesianAxes(asset, {
|
|
Parent = sun_transforms.SunIAU.Identifier,
|
|
Scale = sunRadius * 300
|
|
})
|
|
|
|
debugHelper.registerCartesianAxes(asset, {
|
|
Parent = sun_transforms.SolarSystemBarycenter.Identifier,
|
|
Scale = sunRadius * 300
|
|
})
|