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: 10069
Joined: 04.09.2002
With us: 17 years 1 month
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”

Who is online

Users browsing this forum: 1 guest