Тёмный

Godot 3.1: 3D Camera Gimbal 

KidsCanCode
Подписаться 61 тыс.
Просмотров 28 тыс.
50% 1

Опубликовано:

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 39   
@keshavagrawal89
@keshavagrawal89 4 года назад
This is one of the best tutorial out there to clear camera basics without making things complex! Brilliant work!
@donovantheodore7496
@donovantheodore7496 3 года назад
you all probably dont give a damn but does any of you know of a trick to get back into an Instagram account?? I stupidly forgot my login password. I would love any tricks you can offer me!
@jeromechaim8443
@jeromechaim8443 3 года назад
@Donovan Theodore instablaster ;)
@boerbol9422
@boerbol9422 2 года назад
You're so kind to make this effort to teach us something. Thank you so MUCH!
@Switch620
@Switch620 2 года назад
Wow! This is not the tutorial I was looking for, but this is the tutorial I needed! Great info.
@curiously3755
@curiously3755 Год назад
Great stuff, still works fine with Godot 4.
@toddzircher6168
@toddzircher6168 4 года назад
Wow, this is exactly what I needed. Gladly liked and subscripbed.
@basiliskka1848
@basiliskka1848 2 года назад
This is exactly what I needed, thank you so much for making this video!
@Jay_Bacal
@Jay_Bacal 5 лет назад
Your tutorials are always useful and interesting. More please!
@Alan-fu2vx
@Alan-fu2vx 4 года назад
Changing scale did not give any zoom effect on Godot 3.2 (don't know if it's just me though). In any case if anyone comes to this problem: you can change the Camera's field of view (camera.fov) for this purpose. If u make it a smaller number it zooms in, otherwise it zooms out. You'd probably want to clamp the fov too though, since too high an fov has... interesting results.
@quentinquadrat9389
@quentinquadrat9389 2 года назад
10:00 lerp(from, to, weight) is not supposed to be used like this way: from and to are supposed to be constant over time and weight is dynamic over time and going from 0 to 1. I guess your zoom_speed value is > 1. In this current code scale is modified and to and weight are constant therefore the zoom is always updated and the zoom will always have a steady state error.
@lucaspec7284
@lucaspec7284 5 лет назад
i can't seem to be able to use the mouse to control the camera (& i also can't zoom) but the keys work (cam_up for exemple) i did check the "mouse control" box
@PHDtt
@PHDtt Год назад
is it possible to make a tutorial for a "3D scene viewer" using godot 4 for touch screen devices with options like rotate, zoom and pan with gestures ? (similar to sketchfab 3d viewer)
@gabe2252
@gabe2252 5 лет назад
This was really helpful! I can't wait for more.
@darkexior
@darkexior 5 лет назад
EXCELLENT video, thank you so much for this!
@jyoung4037
@jyoung4037 3 года назад
this is what I`ve been looking for! thx!
@jyoung4037
@jyoung4037 3 года назад
subscripbed!
@iBot.
@iBot. 5 лет назад
Are you going to be making a tutorial series for isometric tiled based games in python? In your tile-based game series you mentioned that there would be one, but I haven't seen one yet.
@curiously3755
@curiously3755 2 месяца назад
Hi @kidscancode Are you still making videos? I've been trying to get two of your cameras to spawn into a two player game, each set across from each other and looking at each other. I've been trying to learn about spawners and synchronisers but getting them to adapt to these cameras is proving difficult. There's may request, you'd get a few dozen hits from me.
@greysky1252
@greysky1252 5 лет назад
I know a lot of games out there that could really use this.
@meta_quest_3
@meta_quest_3 3 года назад
beside your camera, there is pink think, for to know where is your camera watch. How i get this please, i don't have it
@damdam4969
@damdam4969 3 года назад
you are a genius
@eyeemotion1426
@eyeemotion1426 4 года назад
How do you get this to work with the right joystick and relative to it's starting point. I'm asking because I want to use the right stick to "look around" the car. So if I hold the stick to the right, it actually rotates 90 degrees from behind the car. And if I let go, it goes back behind the car. And if I'm just slightly pressing, it has to be somewhere between behind and side. I do get the rotation to work with: func get_input(delta): var y_rotation = Input.get_action_strength("look_left") - Input.get_action_strength("look_right") rotate_object_local(Vector3.UP, y_rotation) But then what? I also tried limiting it, like you do with the up and down. At _process I did "rotation.y = clamp(rotation.y, 1, -1)", but the camera starts flipping then. And together with my original camera and its script (which has a "catching up" effect). I get strange results. So: - CameraGimbal (script rotate) --- InnerGimbal ------ Camera (script follow car + "catch-up" speed dependant) Edit: gotten closer by doing the rotation script on the camera and the follow script on the outer gimbal. But I lose al the "catch-up" and the camera is on top of the car. And when I rotate, it tilts slightly.
@charliep649
@charliep649 4 года назад
You can always add a new spatial node with a camera to represent a head, just switch between cameras when looking around the vehicle
@nidhin84
@nidhin84 5 лет назад
sooooooper.... exactly i am looking for ..............
@_WeHaveFun_
@_WeHaveFun_ 4 года назад
How can i make it spin infinitely from left to right with the mouse control and make the cursor disappear?
@Dragon20C
@Dragon20C 4 года назад
perfect for my character! Im still learning so what I want is when I move the camara around I think its the x axis I want the player to face the same direction its facing how would I accomplish this?
@bitmammothOG
@bitmammothOG 3 года назад
Did you ever find an answer to this? I wish it had that functionality it would be close to a gta controller with a few tweaks and ik added.
@Dragon20C
@Dragon20C 3 года назад
@@bitmammothOG I did use this code to make it rotate to forward
@Dragon20C
@Dragon20C 3 года назад
if Input.is_action_pressed("w"): direction -= transform.basis.z.rotated(Vector3.UP,h_rot)
@dareokoski8158
@dareokoski8158 5 лет назад
so basicly the fp controller script from the tutorials in the godot manual u just off setted the camera from the pivot. i do like the zoom feature tho
@Kidscancode
@Kidscancode 5 лет назад
Yes, it's a pretty standard technique.
@mohammadmad
@mohammadmad 5 лет назад
In 3rd person games, Do you know how to make the camera move closer to the player when something (Like a wall for example) gets between it and the player?
@Kidscancode
@Kidscancode 5 лет назад
See the "ClippedCamera" node: docs.godotengine.org/en/latest/classes/class_clippedcamera.html
@meta_quest_3
@meta_quest_3 3 года назад
Hi, i try to put a character on my map, but i don't see the character, help please
@faucetrememberly2399
@faucetrememberly2399 3 года назад
the camera suddenly became tilted when I implemented mouse controls? all of my syntax was identical to yours. I removed mouse controls and everything is fine. any idea what sort of things could be causing this?
@faucetrememberly2399
@faucetrememberly2399 3 года назад
great video BTW! I love your teaching style!
@trombonemunroe
@trombonemunroe Год назад
I was able to get everything to work except the zoom. That part doesn't seem to work in 3.5.1, alas. ===== EDIT: Actually, let me amend that to say that it works only if you move the zoom code that was originally put under the _unhandled_event() handler and put it into the _input() handler (without the test and early return for Input.get_mouse_mode() != Input.MOUSE_MODE_CAPTURED).
@a3103-j7g
@a3103-j7g 8 месяцев назад
what's with the terrible "skyppy" sound?
Далее
Godot Recipe: Drag-select Multiple Units
11:46
Просмотров 16 тыс.
Godot Recipe: Adding healthbars in 3D
7:27
Просмотров 19 тыс.
skibidi toilet 77 (part 4)
05:20
Просмотров 14 млн
Let's Program Doom - Part 1
25:13
Просмотров 446 тыс.
Godot Recipes: Homing Missiles
7:32
Просмотров 22 тыс.
Godot 3: Kinematic to Rigid Body Interaction
6:47
Просмотров 40 тыс.
Godot Scripts I add to Every Game
12:34
Просмотров 34 тыс.
Godot 3 : Camera Follow Player
4:39
Просмотров 50 тыс.
Why Solo Developers Should Use Unreal
9:51
Просмотров 409 тыс.
skibidi toilet 77 (part 4)
05:20
Просмотров 14 млн