Profile image

Ight so I need some help with the "Trees"

45.9k Minecraftpoweer  4.4 years ago

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....

  • Log in to leave a comment
  • Profile image

    @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

    4.4 years ago
  • Profile image
    9,361 Zanedavid

    gasp, now is my chance to make a good impression...Sees “but without gyros, only on vertical”, nvm

    4.4 years ago
  • Profile image
    28.0k Armyguy1534

    @Minecraftpoweer ok

    4.4 years ago
  • Profile image

    @Armyguy1534 in inputs for stuff that can have inputs.

    4.4 years ago
  • Profile image
    28.0k Armyguy1534

    @WNP78 where do you add those functions? Do you add them in the XML file?

    4.4 years ago
  • Profile image

    @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.

    4.4 years ago
  • Profile image

    @WNP78 U R D Smart

    4.4 years ago
  • Profile image
    Dev WNP78

    the clamp function will help here. clamp(PitchAngle/90, -4, 20) would limit the angle between -4 and 20.

    +1 4.4 years ago
  • Profile image

    @WNP78 Since you added this in the game, do you have a clue how this could logically be done?

    4.4 years ago
  • Profile image

    @BogdanX Do you know anything about how this could be done?

    4.4 years ago