Godot 3.1: 3D Camera Gimbal

  Рет қаралды 28,756

KidsCanCode

KidsCanCode

Күн бұрын

Пікірлер: 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 ;)
@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)
@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.
@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
@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.
@toddzircher6168
@toddzircher6168 4 жыл бұрын
Wow, this is exactly what I needed. Gladly liked and subscripbed.
@basiliskka
@basiliskka 3 жыл бұрын
This is exactly what I needed, thank you so much for making this video!
@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
@curiously3755
@curiously3755 Жыл бұрын
Great stuff, still works fine with Godot 4.
@Jay_Bacal
@Jay_Bacal 5 жыл бұрын
Your tutorials are always useful and interesting. More please!
@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
@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.
@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
@_WeHaveFun_
@_WeHaveFun_ 4 жыл бұрын
How can i make it spin infinitely from left to right with the mouse control and make the cursor disappear?
@gabe2252
@gabe2252 5 жыл бұрын
This was really helpful! I can't wait for more.
@curiously3755
@curiously3755 5 ай бұрын
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.
@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 4 жыл бұрын
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 4 жыл бұрын
@@bitmammothOG I did use this code to make it rotate to forward
@Dragon20C
@Dragon20C 4 жыл бұрын
if Input.is_action_pressed("w"): direction -= transform.basis.z.rotated(Vector3.UP,h_rot)
@gabrielguitiánestrella
@gabrielguitiánestrella 5 жыл бұрын
EXCELLENT video, thank you so much for this!
@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
@jyoung4037
@jyoung4037 3 жыл бұрын
this is what I`ve been looking for! thx!
@jyoung4037
@jyoung4037 3 жыл бұрын
subscripbed!
@faucetrememberly2399
@faucetrememberly2399 4 жыл бұрын
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 4 жыл бұрын
great video BTW! I love your teaching style!
@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.
@greysky1252
@greysky1252 5 жыл бұрын
I know a lot of games out there that could really use this.
@trombonemunroe
@trombonemunroe 2 жыл бұрын
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).
@damdam4969
@damdam4969 4 жыл бұрын
you are a genius
@nidhin84
@nidhin84 5 жыл бұрын
sooooooper.... exactly i am looking for ..............
@a3103-j7g
@a3103-j7g 11 ай бұрын
what's with the terrible "skyppy" sound?
Godot Recipe: Drag-select Multiple Units
11:46
KidsCanCode
Рет қаралды 16 М.
Let's Program Doom - Part 1
25:13
3DSage
Рет қаралды 466 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Godot Recipes: Car Steering
20:55
KidsCanCode
Рет қаралды 50 М.
Godot Recipe: 3D KinematicBody: Align with terrain
15:48
KidsCanCode
Рет қаралды 16 М.
How to Improve Your Camera for Platformers in Godot 3.1
7:41
Game Endeavor
Рет қаралды 23 М.
Godot's Hidden Level/Map Editor
3:39
Garbaj
Рет қаралды 147 М.
Scatter -- A Must Have Tool For Godot Level Editors!
10:24
Gamefromscratch
Рет қаралды 47 М.
I Made My First Game in Godot in 3 Weeks...
26:21
Jack Sather
Рет қаралды 491 М.
Starter state machines in Godot 4
10:58
The Shaggy Dev
Рет қаралды 76 М.
Godot Quick Tip - How to use AnimationTrees
5:37
Miziziziz
Рет қаралды 100 М.
Godot 4 Third Person Camera And Rotation Tutorial
8:34
Brokencircuit
Рет қаралды 10 М.