Godot Recipe: Simplified Airplane Controller

preview_player
Показать описание
Another fun vehicle controller - this time in the air! "Simplified" because we're not doing any physics or aerodynamics. You'll be surprised how little code it takes to just jump in and fly!

Text version and project download:

Рекомендации по теме
Комментарии
Автор

Following you since 2015, started from python to pygame and then to godot


i had came to your channel in search of a query regarding pygame,

i enjoyed your series so i continued....





i hope that you never stop uploading and this channel grows big

aadishsaini
Автор

If you're following along with the video, it has a typo at 12:24. It should be pitch_input += If you follow it as-is, you won't be able to pitch down anymore once you're in the air because it's overwriting the value with the pitch_up input.

tmilker
Автор

i tried to modify it a bit and added basically full control to my aircraft. thanks for making such a easy to understand tutorial

kiliandrilltzsch
Автор

It's almost as if you're reading my mind, it's like when I need something you come out with a video about it

NesiMP
Автор

Hey! So I was directed to this video while searching for general flight controls for rockets in godot, but to my surprise most of the tutorials out there don’t really cover anything related to rocket control. After watching this video, you covered a lot of the questions I had and I was wondering if a future topic could possibly be a simple rocket control tutorial? I really enjoy watching your content, you’re truest brilliant at what you do

darricmoore
Автор

Good sir you are a king and criminally unerrated

jamesm.
Автор

humm I have a small problem Im using GoDot 3.3.4 the follow code creates a error ...

$Mesh/Body.rotation.y = lerp($Mesh/Body.rotation.y, turn_input, level_speed * delta)

and the error output is
Invalid get index 'rotation' (on base: 'null instance')

How would I correct this what is $Mesh/Body ?.

otisjones
Автор

Pretty simple and interesting ! Keep your awesome work, we're so grateful

rbcubosengenharia
Автор

how do u make it so the plane is in 3d instead of 2d

tyronethomas
Автор

I had to change the rotation.y part to rotation.z to get the plane to bank. Not sure how your code gets the plane to bank, because in Godot 3 z is forward and back so plane should be rotation on the forward axis. At least this is how I was able to make it roll/bank

JohnnyCashOriginal
Автор

Following along in Godot 4.3 - can't seem to get the plane to roll. Code as show returns error: Invalid access to property or key 'rotation' on a base object of 'null instance'. Added @Onready variables for the plane, the mesh instance, and collision shape, tried changing "$Mesh/Body" to: plane's mesh instance, collision shape, base reference, from the @onready variables, and nothing seems to rotate the damn shape... any ideas about what I'm doing wrong?

djartistry
Автор

How would you do a flight model like the one in game War Thunder, so that plane fly towards mouse?

Czogista-yqzb
Автор

Very nice and simple to follow tutorial. One suggestion that I would like to make is to get a screen capture program that highlights you mouse cursor. Sometimes it is hard to see where you are moving the mouse.

A request is could you do this type of airplane controller where the person is looking out the plane's window with HUD controls below him/her. That would be more realistic.

Just a request NOT an insistence.
UPDATE;
Nevermind looking out the window. After giving it a bit of thought I figured out just to create a scene using your method but without the mesh and with the Kinematicbody and moving the camera to the center of the body. So the same thing but with no mesh and a HUD added to display the speed, altitude e.t.c and the camera as a child and at the center of the KinematicBody.

BTW are there project files that go along with this video or am I just missing the link for them on the page.

John_Henry
Автор

Could you release the environment that you used in this video ?

dennisdeberry
Автор

Hey! I loved your video :) I know I am a bit late to ask questions (3 years from posting it) but... I was wondering of adding simple physics and what could would happen if you add gravity here? Could setting up a "gliding" statys = to gravity* some delta to reduce it, and applying whenever you're not speeding up / throtling? Thanks a lot for the video :) very clear. I am kind of new to godot and I am getting to know fliying mechanics, but there are not a lot for 3D flying out there.

Pekoteko
Автор

5-6-23- I don't see the download link on the linked page anywhere. Where can I get a zip of the project?

yw
Автор

Awesome video, incredibly helpful. The only issue I ran into is that turning is reversed when you fly upside down.

kairuma
Автор

Thank you. Great as always.



Love the outro :D

TackerTacker
Автор

This is awesome, very simple and useful.
Great channel

skrypciarz
Автор

i saw video tutorial from Gdquest the Dodge the creeps.
any recommendations?
should i buy your book from amazon? or just watch Gquest Dodge the creeps.

skete
visit shbcf.ru