So what I'm trying to do is a tank gun stabilizer... but without gyros (only on vertical)
So what I have is "PitchAngle/90" Which keeps the gun leveled. and then you can ofcourse have another rotator or just add to this one.
But the problem is that when you go up a steep slope the gun will still force itself to be limited.
So basically what I need help with is forcing the gun to stay stabilized, but the gun cant go down more than 4 degrees or up more than 20......... Im still trying to learn this stuff....
@Zanedavid Yea the problem with gyros is that if the tank itself is on a 10° slope thr gun will only go 10° up from the tank instead of 20. Who has helped me in an unlisted post and I'll try the things out then
gasp, now is my chance to make a good impression...Sees “but without gyros, only on vertical”, nvm
@Minecraftpoweer ok
@Armyguy1534 in inputs for stuff that can have inputs.
@WNP78 where do you add those functions? Do you add them in the XML file?
@WNP78 I have tested and tried to edit it too, but it still doesn't seem to work. Looking at it, it should work. But in practice it does not.
@WNP78 U R D Smart
the
clamp
function will help here.clamp(PitchAngle/90, -4, 20)
would limit the angle between -4 and 20.@WNP78 Since you added this in the game, do you have a clue how this could logically be done?
@BogdanX Do you know anything about how this could be done?