Profile image

Levitating/floating vehicle

8 LownirPL  11 months 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

    @Gibble ah, thanks for this info!

    11 months ago
  • Profile image

    @Gibble ok thx

    11 months ago
  • Profile image
    5,221 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

    11 months ago
  • Profile image

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

    11 months ago
  • Profile image
    5,221 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

    +1 11 months ago