Orbit frame "tracking"

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.
Topic author
scoopey
Posts: 10
Joined: 09.07.2012
With us: 12 years 4 months

Orbit frame "tracking"

Post #1by scoopey » 16.07.2012, 23:16

Hello there folks,
bit of strange query this but I'm trying to get to grips with understanding how the orbit and body frames work.
Anyhow it is possible in the sci-fi sense to get a geostationary satellite to "track" an incoming object and point at it?
I've a feeling it would involved the TwoVector parameter

Regards
Steve C

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Orbit frame "tracking"

Post #2by selden » 17.07.2012, 14:10

Yes, to both.

An example which tracks the sun is included in the Celestia Wikibook.

Here's an example taken from v1 of my Hale Telescope addon, which points its Z axis toward the target.

Code: Select all

Modify "hale_telescope" "Sol/Earth" {
   BodyFrame
   {
      TwoVector
      {
             Center "Sol/Earth/hale_telescope"
             Primary   
         {
            Axis "z"
            RelativePosition
            {
################# change this next line to point to a different object
               Target "TAU Cet"
            }
         }

#       ensure sides of telescope stay aligned with yoke axis
                  Secondary   
                  {
                      Axis "-y"
                      ConstantVector   
                      {
                             Vector [ 0 0 1]
                             Frame {  BodyFixed { Center "Sol/Earth/hale_yoke" } }
                      }
                  }
      }
   }

}
Selden

Topic author
scoopey
Posts: 10
Joined: 09.07.2012
With us: 12 years 4 months

Re: Orbit frame "tracking"

Post #3by scoopey » 17.07.2012, 19:11

Thanks for that!


Return to “Help Central”