Profile image

FT Code Issue #1

10.9k StinkyRice  3 months ago

So i tried doing FT and the issue im having is that im trying to make an auto aim but im still at the horizontal stage and im still a beginner but it did work but with one issue, the heading is opposite to the targets heading.

Heres my FT code:
clamp(TargetHeading,1,1)*rate(TargetDistance/TargetHeading)


If anyone has a fix to my code, please do comment.

  • Log in to leave a comment
  • Profile image

    you can take a look at my auto aim in my ships, but it's not perfect accuracy because the cockpit and rotators are so far away from each other.

    BB-X03 for canon part auto aim (main turrets)
    BBY-07 for machine gun part auto aim (main turret)

    2 months ago
  • Profile image
    10.2k SAINAKAJIMA

    @ShinyGemsBro anyway ,what do you want to build anyway?

    3 months ago
  • Profile image
    56.3k ShinyGemsBro

    @SAINAKAJIMA
    That's the worst option that you can use for FT
    An option that shouldn't even be one in the first place.

    +1 3 months ago
  • Profile image
    143k KSB24

    sum(sin(TargetHeading-Heading+RotatorAngle)*500)
    Comment
    in case if you're about to use the code for rotator, i designed the code to working well with the rotator, by make it work by sum. sum is needed to make the rotator to unlimitedly rotate its direction to the target's location.
    set the "Invert" option on the rotator's input control to "Yes", and make its speed very higer using XML editor.

    +1 3 months ago
  • Profile image
    10.2k SAINAKAJIMA

    Why not using chat gpt? Sometimes I use it

    +1 3 months ago