Profile image

Altitude setting funky trees helping plz

603 Kea0806  13 days ago

Help i can't code, ao I need your help

  • Log in to leave a comment
  • Profile image
    603 Kea0806

    Thx yall😄

    11 days ago
  • Profile image
    19.7k Axartar

    I gave it a shot, and basically it isnt too bad, but I cant figure out how to find the time taken for something to happen between two random points after level load A and B. if i could the pitch one would be easy enough. However I recommend using a PID as an input for pitch and in short you have to tweak x,y,z to your liking, but clamp(PID(TargetAltitude,altitude,x,y,z),-1,1)/90 should work, this said, I dont really use this on my builds

    13 days ago
  • Profile image
    19.7k Axartar

    uh, i mean this all depends on how the engine is on the plane, if the engine is straight down its easier, then clamp01(Altitude-TargetAltitude) or if you wanna use something more complicated look at the guide for PID's Pids are made for this stuff, if the engine is horizontal, then you need to look at the pitch, im just gonna do some maths and try and see if i can help ig

    13 days ago
  • Profile image
    3,787 Solent19

    the pitch angle should probably be divided by your max pitch angle or something

    13 days ago
  • Profile image
    3,787 Solent19

    @Kea0806 uuh, having an "altitude" variable (your target altitude) as the pitch input and invert it
    that alone wouldn't work, clamp(altitude/targetaltitude, -1, 1)/(-PitchAngle) should work, i've never really used this in any of my planes

    13 days ago
  • Profile image
    603 Kea0806

    @Solent19 altitude setting like making it stay in the air

    13 days ago
  • Profile image
    3,787 Solent19

    what exactly do you need?
    i can't help if i don't know what to help with

    13 days ago