Wolf 359

Post requests, images, descriptions and reports about work in progress here.
Topic author
fungun
Posts: 315
Joined: 30.07.2007
Age: 63
With us: 17 years 4 months
Location: Iowa, USA

Wolf 359

Post #1by fungun » 09.04.2010, 21:44

I am recreating the battle of Wolf 359.
What would be the best way in the scc file to position the ships? The LongLat decleration or is there something better now?
I would like some positioned over the cube and under it as well.
As you can see by the pic, they are all on the same plane for now.

Thanks,
Tim

Topic author
fungun
Posts: 315
Joined: 30.07.2007
Age: 63
With us: 17 years 4 months
Location: Iowa, USA

Re: Wolf 359

Post #2by fungun » 10.04.2010, 04:14

I tried the

Code: Select all

   FixedPosition
{
    Planetographic [ -120 55 -1.4]
}


Problem is, now it doesn't orbit. It just spins around in one spot, which is what I figured it would do, hence the name.
I went to the wiki and did a search on the forum, but could not find an answer-
Can you combine the above code with this code in the scc file?-

Code: Select all

CustomOrbit ""
   EllipticalOrbit
   {
   Period            30
   SemiMajorAxis     30000
   
   }


Thanks,
Tim

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

Re: Wolf 359

Post #3by selden » 10.04.2010, 17:36

I'm not at all sure what you're trying to accomplish. Your descriptions are much too brief.

However, one way to do it might be to define an orbit for one of the objects and define the placements of the other objects relative to it.

Note that CustomOrbit is only valid for objects with orbits which are defined in Celestia's source code. Otherwise it's ignored and is only a confusion factor.
Selden

Topic author
fungun
Posts: 315
Joined: 30.07.2007
Age: 63
With us: 17 years 4 months
Location: Iowa, USA

Re: Wolf 359

Post #4by fungun » 10.04.2010, 19:26

I made a picture this time. It was hard to explain.
Instead of all the ships being on the same orbital plane, I want to mix it up alittle.
I also need to use MeanLong, because some have the same semimajoraxis. I don't really want them flying through each other.
It would be nice to make it so that when the orbits are shown in Celestia it would look like an atom, but I will settle for what is shown in the image below.

Thanks,
Tim

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

Re: Wolf 359

Post #5by selden » 10.04.2010, 20:28

Here's an example with one ship orbiting above a borg. For simplicity, I used spheres instead of models.

Adding more at different orbital "heights" is left as an exercise for the student ;)
I'm sure there are many other ways to accomplish the same thing.

Code: Select all

"borg" "Wolf 359"
{
   Class "spacecraft"
   Radius 1
   Color [ 0 1 0 ]
   EllipticalOrbit { SemiMajorAxis 2 Period 1 }
}

"c1" "Wolf 359/borg"  # offset orbital center
{
   Radius 0.01
   OrbitFrame { BodyFixed { Center "Wolf 359/borg" } }
   FixedPosition [ 0 0 2 ]
   BodyFrame { BodyFixed { Center "Wolf 359/borg" } }
   FixedRotation {}
}

"fed1" "Wolf 359/borg/c1" # ship orbiting around borg
{
   Class "spacecraft"
   Radius 0.1
   Color [ 0 0.5 1 ]
   OrbitFrame { BodyFixed { Center "Wolf 359/borg/c1" } }
   EllipticalOrbit { SemiMajorAxis 2 Period 1 }
   BodyFrame { BodyFixed { Center "Wolf 359/borg/c1" } }
   FixedRotation {}
}
Selden

Topic author
fungun
Posts: 315
Joined: 30.07.2007
Age: 63
With us: 17 years 4 months
Location: Iowa, USA

Re: Wolf 359

Post #6by fungun » 10.04.2010, 20:56

Thank you very much.
Only one more thing. Having that "c1" in there really makes the menus complicated.
I tried to put "visible false", "clickable false" right below it, but still with in the main { }. That didn't do anything for the menus though.
Is there a work-around for this too?

Thanks again,
Tim

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

Re: Wolf 359

Post #7by selden » 10.04.2010, 21:13

You might try using the prefix "ReferencePoint"

Code: Select all

ReferencePoint "c1" ...
Selden

Topic author
fungun
Posts: 315
Joined: 30.07.2007
Age: 63
With us: 17 years 4 months
Location: Iowa, USA

Re: Wolf 359

Post #8by fungun » 10.04.2010, 21:45

When I put in "ReferencePoint" then the item belonging to the c1 does not show at all.
I do have an idea that won't make it look too bad. I am going to use "Group 1,2,3..." instead of "c1,2,3..."
But, I do thank you for your help.

I almost forgot, how would you use the MeanLong, with that code you made for me, so I can put 2 ships around the same point (c1) without them ending up on top of each other. (or inside of each other, depending on how you look at it)

Tim

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

Re: Wolf 359

Post #9by selden » 11.04.2010, 12:49

Objects in the same orbit but on opposite sides of a central body would have MeanLongitude or MeanAnomaly values which differ by 180 degrees.
Selden

Topic author
fungun
Posts: 315
Joined: 30.07.2007
Age: 63
With us: 17 years 4 months
Location: Iowa, USA

Re: Wolf 359

Post #10by fungun » 11.04.2010, 19:19

Works great ! Thank you again selden.
Using the "Group" thing makes it look much better too.
Now I can get to the battle part of it. :)

Tim


Return to “Add-on development”