Profile image

Ball turret: Is there a way to use the funky trees?

26.6k MakotoIto  4.9 years ago

So, I have this ball turret. Simple thing, just two rotators and a few guns. So, I was wondering if there was a way to use Funkytrees to make it aim at a target, maybe fire at the target by itself. If you have any ideas or code I could take a look at, that would be greatly appreciated.


Turret

  • Log in to leave a comment
  • Profile image
    897 Xi

    Yeah!
    For rotation

    (TargetHeading - Heading+ rate(TargetHeading)*(((800 * sin(asin((TargetDistance * 9.81)/(pow(800, 2)))/2))/9.81) * 2))/180
    For pitch

    clamp((TargetElevation + rate(TargetElevation)(((2000 * sin(asin((TargetDistance * 9.81)/(pow(2000, 2)))/2))/9.81) * 2)) + (asin(((TargetDistance + rate(TargetDistance)(((2000 * sin(asin((TargetDistance * 9.81)/(pow(2000, 2)))/2))/9.81) * 2))* 9.81)/(pow(2000, 2)))/2),-10,45)/45

    Turret ball must be upside cuz idk how to code upside down
    And if the turret ball going to the opposite try inverting it

    +1 3.0 years ago
  • Profile image
    26.6k MakotoIto

    There is now a way to do it

    +1 4.2 years ago
  • Profile image

    Yeah easy

    4.9 years ago
  • Profile image

    It was done at one point @Leehopard

    +1 4.9 years ago
  • Profile image
    84.9k Leehopard

    maybe it's possible by using missiles

    +4 4.9 years ago
  • Profile image
    54.2k CoolPeach

    Yeah there’s no way of tracking other crafts, so pretty obvious no.

    4.9 years ago
  • Profile image
    15.8k Stormfur

    Pretty much impossible to make one part of the plane AI controlled and the rest under player control. Not to mention that AI doesn't even use turrets with rotators because it doesn't know how

    4.9 years ago