Page 1 of 1

Re: Rotating Objects

Posted: 21.02.2012, 03:10
by selden

Code: Select all

FixedRotation {}

is the SSC directive which prevents rotation. However, you also have to consider what coordinate system it's not rotating in -- its BodyFrame, in Celestia's parlance.

e.g.

Code: Select all

"spaceship" "star/planet/starbase"
{
   Class "spacecraft"

   Radius 0.17
   Mesh "spacecraft.cmod"
   NormalizeMesh false
   MeshScale 0.001 # 1 unit = 1 meter

   OrbitFrame { BodyFixed { Center "star/planet/starbase/dock12" }}
   FixedPosition [ 0 0 0.5]

   BodyFrame { BodyFixed { Center "star/planet/starbase/dock12" }}
   FixedRotation {
      Inclination 180
   }
   Albedo 0.001
}