The following OrbitFrame definitions are equivalent:
Code: Select all
OrbitFrame {
SkyPlane {
Center "star"
Target "barycenter"
}
}
OrbitFrame {
TwoVector {
Center "star"
Primary { Axis "z" RelativePosition { Observer "barycenter" Target "SSB" } }
Secondary { Axis "x" ConstantVector { Vector [ 0 0 1 ] Frame { EquatorJ2000 { Center "star" } } } }
}
}
The defaults for the Center and Target properties are the parent object and the top-level barycenter (this ensures that the orbit doesn't change orientation as the components in a multi-star system follow their orbits). Therefore in most cases, it will be possible to abbreviate the frame definition to just:
Code: Select all
OrbitFrame { SkyPlane { } }
This frame can be used as either OrbitFrame or BodyFrame. At present this only applies to objects defined in .ssc files, getting it to work in .stc files (where it would be really useful for binary star orbits) is something I will have to take a look at.