Rotating Objects

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Avatar
Topic author
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Rotating Objects

Post #1by selden » 21.02.2012, 03:10

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
}
Selden

Return to “Help Central”