Profile image

Levitating/floating vehicle

8 LownirPL  1.5 years ago

How do I make my vehicle hover, for example, 10 meters above the ground all the time and it is important that it is stable.

  • Log in to leave a comment
  • Profile image
    28.6k YarisSedan

    @Gibble ah, thanks for this info!

    1.5 years ago
  • Profile image

    @Gibble ok thx

    1.5 years ago
  • Profile image
    6,828 Gibble

    Insert this code on the input of your source of thrust/your engine that's supposed to make your vehicle hover:
    PID(10,AltitudeAgl,0.01,0,0.1)

    If the vehicle/creation is too unstable, simply adjust the number 0.01 to a smaller degree

    1.5 years ago
  • Profile image

    @Gibble Sorry, could you explain it a little easier?

    1.5 years ago
  • Profile image
    6,828 Gibble

    PID(10,AltitudeAgl,0.01,0,0.1)
    Place the code in the input of your source of lift, it could be a prop, or it could be a jet engine.

    If the craft is too bouncy or isn't stable at hovering; simply adjust the P value to be smaller such as 0.005 or 0.0015 depending on your needs:
    PID(10,AltitudeAgl,X,0,0.1)
    P highlighted as X

    +2 1.5 years ago