Not really. This is one of the examples provided in the Celestia WikiBook at https://en.wikibooks.org/wiki/Celestia/Reference_Frames#Sun-lockedWhoa, selden you are a genius! Thanks!!!
how can I rotate a little bit the tidally locked planet? It's texture is not at the right spot...(I don't want to manipulate the texture).
One way to do it is to define a separate viewable object which is rotated by the appropriate amount and positioned relative to the one that's phase-locked to the primary.
For example, change the name of the original object from "b" to "b0" and reduce its size (so it'll be hidden), then define "b" relative to it with an appropriate MeridianAngle. There's an example of this on the WikiBook page linked above. A disadvantage of this method is that b's orbit is no longer drawn since it's in a fixed location.
Code: Select all
"b0" "TRAPPIST-1"
{
Class "planet"
Radius 1
EllipticalOrbit {
Period 0.004136538836 #1 year = 365.25 day
SemiMajorAxis 0.01111
Eccentricity 0.081
Inclination 89.65
}
}
Modify "b0" "Trappist-1"
{
BodyFrame {
TwoVector {
Center "Trappist-1/b0"
Primary {
Axis "z"
RelativePosition { Target "Trappist-1" }
}
Secondary {
Axis "x"
RelativeVelocity { Target "Trappist-1" }
}
}
}
}
"b" "TRAPPIST-1"
{
Mass 0.85 #
Radius 6918.906 #earth 1 = 6371 km
Texture "amalthea.*"
OrbitFrame { BodyFixed { Center "Trappist-1/b0" }}
FixedPosition [ 0 0 0 ]
BodyFrame { BodyFixed { Center "Trappist-1/b0" }}
FixedRotation { MeridianAngle 25 }
}