Does MeshCenter command work with 1.5.x ReferenceFrame code?
Posted: 10.01.2009, 10:55
I have a mesh for which I want the "origin" to be at the outer edge of the mesh (along the X-axis), so that point is treated as the center of the mesh for the purposes of orientation.
Assuming the radius of the mesh in Celestia is 0.0015, I would have thought that one of the following statements would have done the job:
or
However, this seems to have no effect.... It appears that reference and body frames are always centered on the center of the bounding box, and this cannot be changed by the MeshCenter statement.
This is how it's orientation is handled:
The trouble is, this BodyFrame code seems to always act on the ceter of the bounding box (regardless of whether a MeshCemter statement is used or not)
Anyone have any ideas???
Thanks in advance
CC
Assuming the radius of the mesh in Celestia is 0.0015, I would have thought that one of the following statements would have done the job:
Code: Select all
MeshCenter [ 0.0015 0 0 ]
Code: Select all
MeshCenter [ -0.0015 0 0 ]
However, this seems to have no effect.... It appears that reference and body frames are always centered on the center of the bounding box, and this cannot be changed by the MeshCenter statement.
This is how it's orientation is handled:
Code: Select all
BodyFrame {
TwoVector {
Center "Sol/Earth/GLOBALSTAR M002/GLOBALSTAR M002 Panel LHS"
Primary {
Axis "y"
RelativePosition { Target "Sol" }
}
Secondary {
Axis "-x"
RelativeVelocity { Target "Sol/Earth" }
}
}
}
FixedRotation {}
The trouble is, this BodyFrame code seems to always act on the ceter of the bounding box (regardless of whether a MeshCemter statement is used or not)
Anyone have any ideas???
Thanks in advance
CC