Profile image

Tank turrent problem

9,645 Kav  2 months ago

I made a tank after long times which looks like a "Tank"! But I'm not good with funky trees or coding. So I have problems with tank's turrent. I used roll and pitch for turrent control but when changing position of turrent it goes back to its first position (after releasing button).
Can some one help with funky trees or something?
Thanks!
DT-100D

  • Log in to leave a comment
  • Profile image
    9,645 Kav

    Thank you so much my friends for your helps!

    Pinned 2 months ago
  • Profile image
    51.3k Graingy

    @SILVERPANZER Right.

    2 months ago
  • Profile image
    62.7k SILVERPANZER

    @Graingy This is a simple version, but I have a more complex one.
    For greater accuracy, it's better to use auto aim or camera control.

    +1 2 months ago
  • Profile image
    51.3k Graingy

    Roll + Pitch is better for precision but comes short for full rotation. Best for SPAA/AAA and the like.
    @SILVERPANZER Wouldn't using sum result in difficulty in actually acquiring target? That's assuming manual aiming, of course. Curious how the vertical aim code works.

    +1 2 months ago
  • Profile image
    2,730 Chunkycheese

    I have no idea I always just use vtol and trim

    2 months ago
  • Profile image
    9,645 Kav

    @SILVERPANZER Thank you so much bro! I'll credit you in my post.

    2 months ago
  • Profile image
    62.7k SILVERPANZER

    Nice Tank!

    +1 2 months ago
  • Profile image
    62.7k SILVERPANZER

    Simple ft code.
    Horisontal: sum(Roll*X)
    X - rotation speed.

    Vertical rotation: smooth(Pitch = 0 ? 0 : sign(Pitch/15), abs(Pitch*1.5))

    +2 2 months ago