Well, you never know... does it need me to input the rotation angle at any time?
The script I posted should compute this for you from info easily obtained from wings3D. Further, it should autamatically take care of the LH-coords.
Otherwise it automates what I'm doing already - eg:
The rear gun on the anaconda is requires the subent rotated 152deg about (1,0,0). Hence the quarternion is: (0.2419 0.9703 0.0000 0.0000).
However, the port gun requires the subent rotated -90 deg about (1,0,0) and then -30deg = +330deg about (0,0,1)... those rotations are:
Q1 = (1,-1,0,0) since cos(45) = sin(45) = 1/sqrt(2);
Q2 = (1,0,0,t) where t = sin(-15)/cos(-15) = -tan(15) = -0.26795
Total rotation is
Q = Q1*Q2 = 1 + tk - i - t(ik=-j) = (1, -1, t, -t).
unless I stuffed up someplace. It's too easy to misplace a minus sign!
The starboard gun is the same, with that last rotation in the opposite direction. Thus the sine of the t changes. Otherwise the Q is the same.
Now, for the nose guns - I'm giving them a -30deg about x then +30 about y (-30 for the other one).
This is nothing like perpendicular to the surface though... to what extent does this matter?