So I've finally decided on taking the great leap from Spacecraft3 to creating proper modules for all my spacecraft. Right now I'm working with my Io Orbiter, and I've got all the basics down for creating and releasing a payload, but for the Lander I need to rotate the mesh 90deg first, and of course it needs to be rotated the same amount and direction when it's released.
I've tried MeshgroupTransform to rotate the mesh, but I've absolutely gotten no where with that one. No matter what I do I can't get the mesh to rotate, even in the wrong direction. I know I could just create a mesh that's physically rotated the right way, I'd rather see if I can do it with code.
With the released payload I can rotate it, but I just can't get it rotated in the right direction. I've tried applying a rotation matix to the vessel's orientation, but that only rotates it against the ecliptic, and not the axis of the spacecraft.
Anyone able to give me any help on this?
I've tried MeshgroupTransform to rotate the mesh, but I've absolutely gotten no where with that one. No matter what I do I can't get the mesh to rotate, even in the wrong direction. I know I could just create a mesh that's physically rotated the right way, I'd rather see if I can do it with code.
With the released payload I can rotate it, but I just can't get it rotated in the right direction. I've tried applying a rotation matix to the vessel's orientation, but that only rotates it against the ecliptic, and not the axis of the spacecraft.
Anyone able to give me any help on this?