Open Bezzier opened 8 years ago
After investigating this and importing the .mu into blender, it seems to be that the local for the docking node is oriented 90 degrees off on the x axis (+z is where +y should be). I'll either have to get the unity project file or rebuild from blender to fix it, since taniwha's import tool isn't working for export anymore.
Also, I found a soft-dock mechanism animation that may be useful for an enhancement.
that is the only part I don't have the source for. It has been broken since the mod was released and as I recall cbbp tried to fix it many times with no success. That part might not be worth saving.
I know that it's a real PITA, and it may turn out to be impossible without a complete rebuild. I've now gotten the model UV mapped again in blender, and successfully been able to import the model into Unity, but I'm having trouble with the two animations, because they seem to want to import baked as one item. So I'll have to figure that out, how to separate them.
I have been able to set KSP bumped specular material and export a new .mu, with animation disabled.
I'm going to try playing with axis orientations both in blender and in Unity, and see if I can't figure it out. I'm currently using blender 2.77 direct import into Unity 5.2.4f1. I'm also going to upgrade the part config to use the modern ModuleDockingNode syntax, with a reference and control transform, instead of just a connection node.
OK, have a version now that docks correctly, but lacks animation. Upoading it into my fork for testing.
Non-animated version works fine, but....
I created a new fin animation in blender. I was able to import it to unity and build a new .mu from there. I exported the .mu and it continued to work fine. As soon as I enabled the animation in the config file, the model went back to its old (bugged) behavior.
Perhaps I need to build the animations in Unity. I may have to go back to Unity 4.2.2 to use the legacy animation rig.
The APAS-69 has had a consistent problem docking since it was introduced. Aiming it at PAR- to another APAS-69 results in it facing orthogonally. Also, if you are able to keep it facing the correct direction, it tends to dock "bent".
The port is almost unusable with this bug. The old Kosmos team was never able to determine why this occurred.