Changing rotation of spacecratft or object

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
jeff@nasaames
Posts: 5
Joined: 03.02.2006
With us: 18 years 9 months
Location: NASA Ames Exploration Center

Changing rotation of spacecratft or object

Post #1by jeff@nasaames » 15.02.2006, 01:03

I noticed that the Impactor (from Deep Impact) I have, rotates around an outside centerpoint versus rotating around its center.

I looked in the .ssc file for Deep Impact, but I don't know which variable controls the spin. I would appreciate any help I can get.

Cheers,
Jeff

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #2by Chuft-Captain » 15.02.2006, 10:42

Jeff,

Generally this would be controlled by RotationPeriod (expressed in hours), however though I'm not familiar with the Deep Impact addon, from your description of an external centerpoint, I suspect it may have been implemented as an orbit around an invisible object.
Look for something like this in the SSC file:

Code: Select all

"Impactor" "<Name of Invisible Object>"
{
 ...
Period
.....
}

If that's the case, then the rotation speed is determined by the "Period" statement. (NOTE: units will be in years, not hours in this case)
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #3by ElChristou » 15.02.2006, 11:13

..or perhaps the center should be reajusted with:

Code: Select all

MeshCenter [ 0 0 0 ]


(you will have to find out the coordinates)
In that case, the model should perhaps also be reoriented...
Image

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #4by Chuft-Captain » 15.02.2006, 11:24

BTW Jeff,

Is this suposed to be a realistic scenario? What I don't understand is how an object (presumedly in free space) can rotate around an external centerpoint which cannot possibly be it's center of mass.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #5by Vincent » 15.02.2006, 14:42

Jeff,

Jestr often builds his models into invisible spheres. I noticed that when I wrote the Deep Imapct Mission script. The impactor probably rotates around the sphere center instead of the impactor's center...
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3


Return to “Development”