Page 1 of 1

Mesh position

Posted: 05.04.2007, 10:37
by mjoubert
Hi all,

Usually, attitude rotates a spacecraft around its gravity center. But Celestia rotates 3d meshes around their "geometric" center.

To correctly handle that, I have to use :

Code: Select all

"MySpacecraft" "Sol/Earth"
{
   Class "spacecraft"
   Mesh ""
   Radius 0.00205
   ...
}

"MySpacecraft-mesh" "Sol/Earth/MySpacecraft"
{
   Class "spacecraft"
   Mesh "MySpacecraft.3ds"
   Radius 0.00205
   Albedo 0.7
   FixedPosition [-0.00198 -0.000115 0.0]
   OrbitFrame { BodyFixed { Center "Sol/Earth/MySpacecraft" } }
   FixedRotation { }
   BodyFrame { BodyFixed { Center "Sol/Earth/MySpacecraft" } }
   Orientation [240 1 -1 1]
}


Is there a simplest way to do this repositionning? (something like MeshCenter [x y z])

Mathieu (spacebel)