First here are the two principal references for those interested in the question:
http://en.wikibooks.org/wiki/Celestia/Reference_Frames#BodyFrame_property
http://www.lepp.cornell.edu/~seb/celestia/celestia_notes.html#5.10.2
Perso I must admit I have some difficulties using those declarations, perhaps because my English is not good enough and I miss some subtleties or simply because I reach the limits of my tolerance to spacial geometry (who knows) , it's why I suppose it would be useful to show a well documented example, so I thought the occasion was good.
So, let's begin with a description of the extraction sequence of the LEM, step by step. I 'll expose my point of view without entering in the details of the ssc, please correct me if something is wrong.
Here is the 3rd stage; because the opening of the SLA seems to be complicated for a first example, let's forget it (I removed it but the CSM's position is unchanged)
![Image](http://nho.ohn.free.fr/celestia/preview/extrac1.jpg)
**
We need 3 models:
The 3rd stage body,
![Image](http://nho.ohn.free.fr/celestia/preview/extrac2.jpg)
the LEM,
![Image](http://nho.ohn.free.fr/celestia/preview/extrac3.jpg)
and the CSM,
![Image](http://nho.ohn.free.fr/celestia/preview/extrac4.jpg)
So at this point we have 3 declarations in the ssc. the 3rd stage should have as reference Earth. The LEM should have the 3rd stage as reference, the CSM should have or the 3rd stage or the LEM as reference (what best?)
***
Here we go for the sequence:
Step 1: Translation of the CSM:
![Image](http://nho.ohn.free.fr/celestia/preview/extrac5.jpg)
(at this point the SLA should open and being ejected)
***
Step 2: Rotation of the CSM (180?°):
![Image](http://nho.ohn.free.fr/celestia/preview/extrac6.jpg)
***
Step 3: Translation of the CSM for docking with LEM:
![Image](http://nho.ohn.free.fr/celestia/preview/extrac7.jpg)
***
Step 4: Translation of the CSM/LEM:
![Image](http://nho.ohn.free.fr/celestia/preview/extrac8.jpg)
***
Step 5: Rotation of the CSM/LEM (180?°):
![Image](http://nho.ohn.free.fr/celestia/preview/extrac9.jpg)
***
Step 6: Translation of the CSM/LEM, direction Moon:
![Image](http://nho.ohn.free.fr/celestia/preview/extrac10.jpg)
***
My personal question to gurus are:
What are the best references for those steps?
The rotations and translations should be declared in .q and .xyz files?
In Step 6, the Moon should be taken as reference, how to change from a reference to another smoothly?