Earth-Moon Home-made Reference Frame Question
Posted: 28.03.2008, 19:56
I have this in a file in extras to define the Earth-Moon L1 point:
This isn't quite right, but it's mostly good enough. I'm using in a script to show Lunar Libration. But then I realized what I really want is a point which is at a fixed distance from Earth so I can also show the changing size of the moon to the perigee/apogee distance difference. I cribbed the above definition and after a lot of trial and error have come up with this which seems to work.
I've read the page on http://en.wikibooks.org/wiki/Celestia/Reference_Frames so I didn't make this up out of the blue, but I still can't claim to understand what I've done. Can someone give me an interpretation? Let me try first...
The OrbitFrame is defining the orbital plane of my reference to be the same as that of the Moon.
The BodyFrame is just orienting my "object" the same way.
The FixedPosition is relative to the primary object which is Sol/Earth.
The RelativeVelocity was the "magic" to make it work and it was a stab in the dark.
roland
Code: Select all
"Moon-L1" "Sol/Earth/Moon"
{
Class "Invisible"
Radius 0.001
OrbitFrame
{
TwoVector
{
Center "Sol/Earth/Moon"
Primary
{
Axis "x"
RelativePosition { Target "Sol/Earth" }
}
Secondary
{
Axis "y"
RelativeVelocity { Target "Sol/Earth" }
}
}
}
BodyFrame
{
BodyFixed
{
Center "Sol/Earth/Moon"
}
}
FixedPosition [ 61272.261 0. 0 ]
}
This isn't quite right, but it's mostly good enough. I'm using in a script to show Lunar Libration. But then I realized what I really want is a point which is at a fixed distance from Earth so I can also show the changing size of the moon to the perigee/apogee distance difference. I cribbed the above definition and after a lot of trial and error have come up with this which seems to work.
Code: Select all
"LEO Moon Track" "Sol/Earth"
{
Class "Invisible"
Radius 0.001
OrbitFrame
{
TwoVector
{
Center "Sol/Earth"
Primary
{
Axis "x"
RelativePosition { Target "Sol/Earth/Moon" }
}
Secondary
{
Axis "y"
RelativeVelocity { Target "Sol/Earth/Moon" }
}
}
}
BodyFrame
{
TwoVector
{
Center "Sol/Earth"
Primary
{
Axis "x"
RelativePosition { Target "Sol/Earth/Moon" }
}
Secondary
{
Axis "y"
RelativeVelocity { Target "Sol/Earth/Moon" }
}
}
}
FixedPosition [ 7000.0 0. 0]
RelativeVelocity { Target "Sol/Earth/Moon" }
}
I've read the page on http://en.wikibooks.org/wiki/Celestia/Reference_Frames so I didn't make this up out of the blue, but I still can't claim to understand what I've done. Can someone give me an interpretation? Let me try first...
The OrbitFrame is defining the orbital plane of my reference to be the same as that of the Moon.
The BodyFrame is just orienting my "object" the same way.
The FixedPosition is relative to the primary object which is Sol/Earth.
The RelativeVelocity was the "magic" to make it work and it was a stab in the dark.
roland