No video

Godot 3.1: 3D Camera Gimbal

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

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 ;)
@boerbol9422
@boerbol9422 2 жыл бұрын
You're so kind to make this effort to teach us something. Thank you so MUCH!
@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.
@Switch620
@Switch620 2 жыл бұрын
Wow! This is not the tutorial I was looking for, but this is the tutorial I needed! Great info.
@toddzircher6168
@toddzircher6168 4 жыл бұрын
Wow, this is exactly what I needed. Gladly liked and subscripbed.
@curiously3755
@curiously3755 Жыл бұрын
Great stuff, still works fine with Godot 4.
@basiliskka1848
@basiliskka1848 2 жыл бұрын
This is exactly what I needed, thank you so much for making this video!
@MrDaduh59
@MrDaduh59 5 жыл бұрын
Your tutorials are always useful and interesting. More please!
@lucaspec7284
@lucaspec7284 4 жыл бұрын
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 10 ай бұрын
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)
@darkexior
@darkexior 5 жыл бұрын
EXCELLENT video, thank you so much for this!
@gabe2252
@gabe2252 5 жыл бұрын
This was really helpful! I can't wait for more.
@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.
@jyoung4037
@jyoung4037 3 жыл бұрын
this is what I`ve been looking for! thx!
@jyoung4037
@jyoung4037 3 жыл бұрын
subscripbed!
@greysky1252
@greysky1252 5 жыл бұрын
I know a lot of games out there that could really use this.
@curiously3755
@curiously3755 27 күн бұрын
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.
@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
@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.
@nidhin84
@nidhin84 5 жыл бұрын
sooooooper.... exactly i am looking for ..............
@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
@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)
@_WeHaveFun_
@_WeHaveFun_ 4 жыл бұрын
How can i make it spin infinitely from left to right with the mouse control and make the cursor disappear?
@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
@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).
@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!
@user-th7gd7ge4p
@user-th7gd7ge4p 6 ай бұрын
what's with the terrible "skyppy" sound?
Godot Recipe: Drag-select Multiple Units
11:46
KidsCanCode
Рет қаралды 16 М.
Godot Recipe: 3D KinematicBody: Align with terrain
15:48
KidsCanCode
Рет қаралды 15 М.
Nurse's Mission: Bringing Joy to Young Lives #shorts
00:17
Fabiosa Stories
Рет қаралды 14 МЛН
小丑和白天使的比试。#天使 #小丑 #超人不会飞
00:51
超人不会飞
Рет қаралды 33 МЛН
Люблю детей 💕💕💕🥰 #aminkavitaminka #aminokka #miminka #дети
00:24
Аминка Витаминка
Рет қаралды 1,2 МЛН
Throwing Swords From My Blue Cybertruck
00:32
Mini Katana
Рет қаралды 11 МЛН
Third Person Character Controller in Godot 3.2
29:09
Code with Tom
Рет қаралды 45 М.
Scatter -- A Must Have Tool For Godot Level Editors!
10:24
Gamefromscratch
Рет қаралды 46 М.
Godot Recipe: 3D KinematicBody Movement
11:56
KidsCanCode
Рет қаралды 25 М.
Race 3D Template Godot 4.2 - R12 showcase
1:15
RNB Games
Рет қаралды 6 М.
Godot 3.0: Top-down Tank Battle - Part 2
15:11
KidsCanCode
Рет қаралды 35 М.
Godot Recipe: Multitarget Camera2D
9:16
KidsCanCode
Рет қаралды 10 М.
Open World Environment Lighting In Godot 3 Tutorial
26:47
Tokisan Games
Рет қаралды 63 М.
Godot Recipe: Simplified Airplane Controller
14:29
KidsCanCode
Рет қаралды 21 М.
Nurse's Mission: Bringing Joy to Young Lives #shorts
00:17
Fabiosa Stories
Рет қаралды 14 МЛН