No video

Godot Recipe: Simplified Airplane Controller

  Рет қаралды 21,044

KidsCanCode

KidsCanCode

Күн бұрын

Пікірлер: 85
@aadishsaini1042
@aadishsaini1042 3 жыл бұрын
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
@XPlats
@XPlats 5 ай бұрын
i did pygame and to godot aswell and jsut stated godot not to long a go like a month
@sniper_hd
@sniper_hd 3 жыл бұрын
this needs to have at least 10K views
@uplanduk
@uplanduk 3 жыл бұрын
That's exactly what I thought too - till I realised it was only uploaded today
@namrata5025
@namrata5025 6 ай бұрын
It does
@kiliandrilltzsch8272
@kiliandrilltzsch8272 2 ай бұрын
i tried to modify it a bit and added basically full control to my aircraft. thanks for making such a easy to understand tutorial
@darricmoore2151
@darricmoore2151 3 жыл бұрын
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
@NesiAwesomeness
@NesiAwesomeness 3 жыл бұрын
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
@jamesm.4474
@jamesm.4474 3 жыл бұрын
Good sir you are a king and criminally unerrated
@tmilker
@tmilker 8 ай бұрын
If you're following along with the video, it has a typo at 12:24. It should be pitch_input += Input.get_action_strength("pitch_up") 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.
@kairuma9678
@kairuma9678 3 жыл бұрын
Awesome video, incredibly helpful. The only issue I ran into is that turning is reversed when you fly upside down.
@zodiaq7186
@zodiaq7186 3 жыл бұрын
unsure, so don’t take offense to this, but isnt that how airplanes work?
@emeraldraidz3167
@emeraldraidz3167 2 жыл бұрын
@@zodiaq7186 Yes it is lol
@rbcubosengenharia694
@rbcubosengenharia694 3 жыл бұрын
Pretty simple and interesting ! Keep your awesome work, we're so grateful
@TackerTacker
@TackerTacker 3 жыл бұрын
Thank you. Great as always. Love the outro :D
@Kidscancode
@Kidscancode 3 жыл бұрын
Wow, that was not supposed to be there :P
@TackerTacker
@TackerTacker 3 жыл бұрын
@@Kidscancode That's what I thought :D
@JohnnyCashOriginal
@JohnnyCashOriginal 2 жыл бұрын
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
@otisjones6752
@otisjones6752 2 жыл бұрын
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 ?.
@bob-zb3ed
@bob-zb3ed 7 ай бұрын
you need to make a mesh body too
@theteastoners5935
@theteastoners5935 3 жыл бұрын
thanks a lot i was looking for a control like this for a game i was thinking about i do need to work on some of the mechanics but this helps me a lot its the best basics to start this type of game
@thelumberjack8838
@thelumberjack8838 3 жыл бұрын
Amazingly done
@tyronethomas5075
@tyronethomas5075 2 жыл бұрын
how do u make it so the plane is in 3d instead of 2d
@marcosadrian65
@marcosadrian65 3 жыл бұрын
Nice! makes me want to jump to 3d 😀 to try at least
@Kidscancode
@Kidscancode 3 жыл бұрын
You should!
@Pekoteko
@Pekoteko 2 ай бұрын
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.
@skrypciarz5974
@skrypciarz5974 3 жыл бұрын
This is awesome, very simple and useful. Great channel
@sethoz22
@sethoz22 Жыл бұрын
In the written tutorial you forget to mention that get_input(delta) must be called in _physics_process(delta)
@ehanamanath27
@ehanamanath27 Жыл бұрын
your so good at it
@Czogista-yq1zb
@Czogista-yq1zb 3 жыл бұрын
How would you do a flight model like the one in game War Thunder, so that plane fly towards mouse?
@abbasimaaz7223
@abbasimaaz7223 3 жыл бұрын
Now we just needed code for the player to enter and exit these vehicles
@Kidscancode
@Kidscancode 3 жыл бұрын
That's more to do with animation than code.
@abbasimaaz7223
@abbasimaaz7223 3 жыл бұрын
@@Kidscancode I didn't get it, animation?... We just need enter and exit animation, isn't it and the idle animation of car or any other vehicle.. 🤔
@BastiaanOlij
@BastiaanOlij 3 жыл бұрын
Very very cool!
@artik_mc6570
@artik_mc6570 3 жыл бұрын
Oh, I haven't watched videos from this channel for a long time. Thank you for the material, but I have cooled down to programming, my knowledge is not needed by anyone. I even learned the Unreal Engine. It turns out that all this takes a lot of time, and I don't have it, I'm sad. (О давно я не смотрел роликов с данного канала. Спасибо Вам, за материал, но я остыл к программированию, мои знания не кому не нужны. Я даже изучил движок Unreal Engine. Оказывается на всё это много времени надо, а у меня его нет мне печально.)
@okpunorpatrick853
@okpunorpatrick853 3 жыл бұрын
Amazing video thanks a lot
@anzdes219
@anzdes219 Жыл бұрын
i have this error message when i play the game, do someone know why ? get_node: (Node not found: "f16Mesh/Body" (relative to "/root/level/f16").)
@peace__duke
@peace__duke Жыл бұрын
link to source on website is broken
@doghat9929
@doghat9929 3 жыл бұрын
Why you don't do a wheel track for 2d top-down, for a future video
@yw348
@yw348 Жыл бұрын
5-6-23- I don't see the download link on the linked page anywhere. Where can I get a zip of the project?
@MrSensitiveNipples
@MrSensitiveNipples 3 жыл бұрын
At 10:17 in your code: if not grounded Rotation.x = 0 Grounded = true Velocity.y -= 1 Why is "rotation.x = 0" tabbed over one further than the sounding code in the if statement?
@Kidscancode
@Kidscancode 3 жыл бұрын
It's indented under `if not grounded`, so it will only be applied when first contacting the ground.
@MrSensitiveNipples
@MrSensitiveNipples 3 жыл бұрын
@@Kidscancode Thanks
@FatDevGames
@FatDevGames 3 ай бұрын
I am following this in godot 4, have been able to convert most of this but I am having a problem at 4:13 I am getting the error “Error at (32,31): Too many arguments for “move_and_slide()” call. Expected at most 0 but received 2.” Just wondering if anyone had any idea of how to fix this
@Kidscancode
@Kidscancode 3 ай бұрын
move_and_slide() is used differently in Godot 4. See docs.godotengine.org/en/stable/tutorials/physics/using_character_body_2d.html
@rafcon9141
@rafcon9141 3 жыл бұрын
I haven´t tried it, but the game feel looks like the Sly Cooper 3 plane mission (fly of fancy).
@OliverJ440
@OliverJ440 8 ай бұрын
can i have the project file?
@skete1338
@skete1338 3 жыл бұрын
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.
@IrvanQadri
@IrvanQadri 3 жыл бұрын
this is awesome! I would like to know how you would like to implement a fuel system
@itsME-dc4vm
@itsME-dc4vm 3 жыл бұрын
thanks nice ;D
@richardombrog6081
@richardombrog6081 3 жыл бұрын
Hello does your book from Amazon are still relevant??
@yougood1621
@yougood1621 Жыл бұрын
Is there a full tutorial?
@markdenning5178
@markdenning5178 3 жыл бұрын
I like that your airplane looks like a Russian I-16
@OnyxIdol
@OnyxIdol 3 жыл бұрын
The footage of the plane is very choppy for some reason?
@Kidscancode
@Kidscancode 3 жыл бұрын
Yeah, I'm not sure why that happened. Something when I was rendering the video for upload.
@martafernandez8129
@martafernandez8129 3 жыл бұрын
Do you leave KZbin?
@sahilmalhan
@sahilmalhan 3 жыл бұрын
Thanks for a great video. I had a couple issues with this. I used a different plane model and it screwed up a lot as I was following the code. One issue is the z-axis for the model you are using is weird. Banking happens by transforming the y-axis. I figured out those quirks and made adjustments. One major issue I still am facing is the camera or the model flips when I try to do a 360. I can't understand what is actually flipping. This doesn't happen in your demo. I can share the code if anyone can help.
@sahilmalhan
@sahilmalhan 3 жыл бұрын
I figured out the solution if anyone else is stuck. It's the interpolate camera code. The vector.up should be replaced with target.transform.basis.y in the look at parameter.
@punishedfortniter
@punishedfortniter 3 жыл бұрын
How do I get that plane model?
@yoyo12345
@yoyo12345 3 жыл бұрын
Pygame tutorials plzz as I don't have a pc
@ShootYourBricks
@ShootYourBricks 3 жыл бұрын
How do you use physics? I'd like to use a rigid body, but changing the linear velocity every frame doesn't work.
@Kidscancode
@Kidscancode 3 жыл бұрын
When using rigid bodies, you move them by applying forces.
@ShootYourBricks
@ShootYourBricks 3 жыл бұрын
@@Kidscancode How do you apply the force though?
@Kidscancode
@Kidscancode 3 жыл бұрын
There are functions for this, such as `add_force()`
@ShootYourBricks
@ShootYourBricks 3 жыл бұрын
@@Kidscancode oh, ok. I'll have to try that. I'm trying to make a fighter jet game but I want to be able to take off from the ground and collide with things. Thanks
@EthanReed0
@EthanReed0 3 жыл бұрын
can you guys do some boating physics? for example: speed boat
@Kidscancode
@Kidscancode 3 жыл бұрын
The car demo I did recently would work really well for a boat as well! kzbin.info/www/bejne/gqKvlJuerbKfmq8 I got the idea from Kenney, and he did a boat with his version: twitter.com/kenneynl/status/1109438181324263429?lang=en
@EthanReed0
@EthanReed0 3 жыл бұрын
@@Kidscancode thank you so much
@conspiracyman5031
@conspiracyman5031 3 жыл бұрын
Are you going to make a boat next?
@Kidscancode
@Kidscancode 3 жыл бұрын
Boat or spaceship? hmm...
@abbasimaaz7223
@abbasimaaz7223 3 жыл бұрын
@@Kidscancode motorcycle if possible 😅
@Kidscancode
@Kidscancode 3 жыл бұрын
A motorcycle could use the exact same setup as the car. Just reverse the body tilt so it leans *into* curves instead.
@Kidscancode
@Kidscancode 3 жыл бұрын
Depends on the spaceship. If it's a "Star Wars" type ship it's really just an airplane and would fly pretty much the same way. A "true" spaceship would use all 6 degrees of freedom, which is much more complex to control.
@BojanDam
@BojanDam 3 жыл бұрын
We are looking forward to that. 😉
@Gatfim.official
@Gatfim.official 10 ай бұрын
There is a tutorial for mobile
@agex0058
@agex0058 3 жыл бұрын
epik
@raptecclawtooth9046
@raptecclawtooth9046 3 жыл бұрын
Do you have some video about fighting games in godot? i try to look in your videos but are too many
@sniper_hd
@sniper_hd 3 жыл бұрын
please make a tutorial for entering and exiting vehicles PLEASE I NEED IT for my FPS game
@Mr_Squarepeg
@Mr_Squarepeg 3 жыл бұрын
Notification Squad where you at?
@retrorimos5841
@retrorimos5841 2 ай бұрын
Totally outdated for Godot 4.
@Kidscancode
@Kidscancode 2 ай бұрын
Only minor changes required. You can see an updated script and explanation here: kidscancode.org/godot_recipes/4.x/3d/simple_airplane/
@retrorimos5841
@retrorimos5841 2 ай бұрын
@@Kidscancode Thank you !
@gtx666ti
@gtx666ti 3 жыл бұрын
pencuri
@thelumberjack8838
@thelumberjack8838 3 жыл бұрын
Also first
Godot Recipe: Arcade-style 3D Spaceship
12:12
KidsCanCode
Рет қаралды 17 М.
Godot Recipes: Car Steering
20:55
KidsCanCode
Рет қаралды 47 М.
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 4,6 МЛН
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 24 МЛН
I Made My First Game in Godot in 3 Weeks...
26:21
Jack Sather
Рет қаралды 335 М.
Godot Recipe: Drag-select Multiple Units
11:46
KidsCanCode
Рет қаралды 16 М.
Path Based Mesh Generation in Godot 4
7:27
Crigz Vs Game Dev
Рет қаралды 28 М.
Godot Recipe: 3D KinematicBody: Align with terrain
15:48
KidsCanCode
Рет қаралды 15 М.
I Programmed My Own Custom DirectX 3D Graphics Engine
26:29
The Most Impressive Scratch Projects
11:00
DenshiVideo
Рет қаралды 4,9 МЛН
Simple Interactive Grass in Godot
13:17
Kasper Frandsen
Рет қаралды 35 М.
Scatter -- A Must Have Tool For Godot Level Editors!
10:24
Gamefromscratch
Рет қаралды 46 М.
Godot Recipe: Multitarget Camera2D
9:16
KidsCanCode
Рет қаралды 10 М.
Sky Shaders in Godot 4.0 | What You Should Know
5:42
StayAtHomeDev
Рет қаралды 41 М.
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 4,6 МЛН