mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-18 09:51:18 -06:00
* Add coordinate axes renderable * Add debug helper * Add example asset * Fix bug with dynamic loading of assets. (#763)
20 lines
541 B
Plaintext
20 lines
541 B
Plaintext
local transforms = asset.require('scene/solarsystem/planets/earth/transforms')
|
|
local debugHelper = asset.require('util/debug_helper')
|
|
|
|
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
|
|
})
|