Profile image

Altitude setting funky trees helping plz

678 Kea0806  2 months ago

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

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

    Thx yall😄

    one month ago
  • Profile image
    20.1k 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

    2 months ago
  • Profile image
    20.1k 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

    2 months ago
  • Profile image
    4,086 Solent

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

    2 months ago
  • Profile image
    4,086 Solent

    @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

    2 months ago
  • Profile image
    678 Kea0806

    @Solent19 altitude setting like making it stay in the air

    2 months ago
  • Profile image
    4,086 Solent

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

    2 months ago