sirkut / InfernalRobotics

Update to r4m0n Dammed Robotics that works on Kerbal Space Program 0.20.2
Other
17 stars 16 forks source link

Fixed constraints in VAB/SPH #31

Closed icedown closed 9 years ago

icedown commented 9 years ago

When the constraint on a part was moved past where the part actually was, the current code only rewrote the position of the part, but did not actually move it to the new position. This commit allows execution of the rest of the FixedUpdate() inside the VAB/SPH instead of only in flight. When it checks limits, if it finds the part is out of limits, it then moves it and resets the current rotation/translation. It also limits maxTweak to minTweak. This appears to be working correctly on all parts.

icedown commented 9 years ago

I don't know why that second commit showed up in this. Still new to this system.

icedown commented 9 years ago

Just found a rotation bug on the hinges, I'll look into it tomorrow when I get to the office.