Profile image

FT Code Assistance Required [Solved]

26.3k HuskyDynamics01  3 months ago

So I'm back to working on an aircraft for my plat special build (finally), and I would like to implement this function (Desmos link) as a part of one of the systems. (A and M are stand-in variables to simplify the formula; they will be defined in-game in the variables list).

I've spent about a half hour now trying to get this into FT language, and the best I've come up with is (1/ (1+ pow( (A - 3 + (3*M)), 2) ) )) - 0.2(A) - 0.1 + 0.1(M)), with A and M properly defined in the variables list. However, this function doesn't work, and I don't know why.

I would very much appreciate assistance from one of the more skilled FT gurus on this (either with fixing the current FT formula I have, or with writing a better one to recreate the mathematical function), because I'd really like it to work!

  • Log in to leave a comment
  • Profile image

    @PlaneFlightX Yep, that was it. Thanks so much! It's been a while since I've worked with FT lol.

    And now comes the fun part, fine-tuning it so it actually does what I want it to do how I want it to do it

    +2 3 months ago
  • Profile image
    46.6k PlaneFlightX

    (1 / (1 + pow(A - 3 + (3 * M), 2))) - (0.2 * A) - 0.1 + (0.1 * M)
    I think the issue is that implied multiplication (eg 0.1(M) or 0.1M) is not supported.

    +1 3 months ago