So recently I've managed to implement speed limit on my tank ( thank you community!) But now, it's time for gun stabilizers.
I've searched for reference here, but I still didn't understand how I could make it work. Here are some pictures of what I did using the reference I've acquired.
sed boi
I'm using two hinge rotator.
Hinge rotator on the right, I've inserted the code for gun stabilizers ( I suppose, founded from forum)
Hing rotator on the left, I've made it to control the gun.
Both hing rotator has damperMultiplier set to 100, because I'm not sure how it should be
It would be a big help if y'all could help me on this!
No problem!
@TheThirdUnionRepublic
@MrVaultech thank you, it works perfectly fine!
I've just stuck with the gyro on a balanced gun, works pretty well for a stabilized gun.
If that there on the turret's the final position for the cockpit,
clamp(clamp01(Activate8)xPitchAngle/15+pow(Trim,2)xsign(Trim),-1,1)
should serve you well; replace the x's with multiplication sign first, offcourse.
The code you've found was for a setup where the cockpit is mounted on the main gun mantlet, pitching itself with the gun.