Profile image

PLZ I NEED HELP WITH AN XML SCRIPT!!!!

0 atlas5b  2.7 years ago

so i was making a pointer that locks on target using two rotators,my initial script was {deltaangle(TargetHeading ,Heading)/180} for the traverse rotator and {(TargetElevation-PitchAngle)/90} for the longitudinal rotator.basically classic turret stuff

but i wanted it to be adjusting for roll motion since having the slightest roll angle will ruin the alignment and so using some rotation transformations with the help of complex numbers i ended up with {atan(tan(deltaangle(TargetHeading ,Heading)) * cos(RollAngle)-tan((TargetElevation-PitchAngle)) * sin(RollAngle))/180} for the traverse rotator and it works perfectly fine and place the longitudinal rotator in the correct plane which then runs this script {atan(tan(deltaangle(TargetHeading ,Heading)) * sin(RollAngle) + tan(TargetElevation-PitchAngle) * cos(RollAngle)) / 90} but it doesn't work, it keeps missing unless the rollAngle is a pi multiplier, I've been experimenting with this stuff for over a week but it still doesn't work despite the fact that the math checks out for me, any help would be greatly appreciated!!!

  • Log in to leave a comment
  • Profile image
    2,085 Ouroboros

    i'm not that well versed in ft but you can check the FT lab server in the pinned discord server list, you'll find much more help over there

    2.7 years ago
  • Profile image
    5,778 XiliamXD

    I don't know about funky trees much but maybe 'Dev' WNP78 can help

    2.7 years ago