It allows to use a joystick to move and rotate the aircraft. It follows the terrain (when on the ground).
- FlyWithLua NG for X-Plane 11 or NG+ for X-Plane 12
- Tested with X-Plane 11 and 12
Put the .lua file into ./Resources/plugins/FlyWithLua/Scripts/
- Bind the command
flightwusel/SlewMode/Toggle
to a key or joystick button. - Press the key/button to enable/disable Slew Mode. While active, it will announce the current mode on-screen ("free" or "following terrain"). In terrain-following mode it will keep the plane sticked to the ground. You change the mode to "free" by increasing altitude. When you "hit" the ground, terrain following mode is engaged.
- Use your joystick to move the aircraft:
- Pitch axis -> move forward/backward
- Roll axis -> move sideways
- Yaw axis -> heading
- Use your joystick to roll the aircraft:
- While pressing SPACE (the "modifier key") you can roll the aircraft with the joystick:
- Pitch axis -> pitch
- Roll axis -> roll
- While pressing SPACE (the "modifier key") you can roll the aircraft with the joystick:
- Change altitude:
- You can bind keys for increasing/decreasing altitude.
- Keep moving in a direction:
- While pressing SHIFT+SPACE (SHIFT+"modifier key") your current joystick input will be the default movement vector. Example: Move stick forward, press SHIFT+SPACE and you will continue to move forward even if you center the stick again. (Press SHIFT+SPACE with the joystick centered to stop again)
Enable/disable Slew Mode
flightwusel/SlewMode/Altitude_increase_lots
, /Altitude_increase
, /Altitude_decrease_lots
, /Altitude_decrease
Adjust altitude
Set roll and pitch to 0°
The "modifier key", axis assignments etc. can be changed in the settings
table at the beginning of the file.
If you have problems, feedback or ideas you can open an issue here or post in the thread on the x-plane.org forum.