mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-24 13:09:22 -06:00
27 lines
750 B
Plaintext
27 lines
750 B
Plaintext
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
|
|
})
|