Page 1 of 1
Wolf 359
Posted: 09.04.2010, 21:44
by fungun
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
Re: Wolf 359
Posted: 10.04.2010, 04:14
by fungun
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
Re: Wolf 359
Posted: 10.04.2010, 17:36
by selden
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.
Re: Wolf 359
Posted: 10.04.2010, 19:26
by fungun
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
Re: Wolf 359
Posted: 10.04.2010, 20:28
by selden
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 {}
}
Re: Wolf 359
Posted: 10.04.2010, 20:56
by fungun
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
Re: Wolf 359
Posted: 10.04.2010, 21:13
by selden
You might try using the prefix "ReferencePoint"
Re: Wolf 359
Posted: 10.04.2010, 21:45
by fungun
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
Re: Wolf 359
Posted: 11.04.2010, 12:49
by selden
Objects in the same orbit but on opposite sides of a central body would have MeanLongitude or MeanAnomaly values which differ by 180 degrees.
Re: Wolf 359
Posted: 11.04.2010, 19:19
by fungun
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