* New rotation models:
- In previous versions of Celestia, all objects rotated uniformly about a
single axis (with optional precession about the z-axis.) Celestia 1.5.0
introduces the concept of a generic rotation model, which is some function
that specifies the orientation of an object over time.
- Rotation models available in Celestia 1.5.0:
- FixedRotation: For an object with an orientation that remains fixed
within its reference frame. This was a notable omission in older version
of Celestia.
- UniformRotation: Describes a rotation of a constant rate about a fixed
axis.
- PrecessingRotation: UniformRotation plus a precession rate.
- SampledOrientation: Analagous to SampledOrbit for position.
SampledOrientation specifies a file of time tagged quaternions which
are interpolated to give the orientation of an object.
- ScriptedRotation: Allows the orientation of an object to be controlled
by a Lua script.
I would like to try out the ScriptedRotation stuff, but don't know enough about Lua and .celx to get this up and running. Does anyone have a few working examples of ScriptedRotation for 1.5.0 that I can study and modify to try out the capabilities of this new feature? I'm the sort of person that learns much more quickly from a working example than by reading the documentation to create the working example from scratch: having a working example allows me to look up the documentation from the working example, rather than the other way around.
My intention is to model a world that is about to enter tidal lock; the angular rotation relative to the parent body would decrease linearly to zero, after which it stays at zero after the world enters tidal lock.