Setting up 3d Pathfinding in Mins | Godot

  Рет қаралды 24,733

rayuse rp

rayuse rp

Күн бұрын

In this video I will be showing you how to setup 3d pathfinding in the Godot engine in mins. For this tutorial I am using Godot 3.3.
Github link: github.com/Ray...
Kickstarter link: www.kickstarte...

Пікірлер: 46
@euanpettigrew6767
@euanpettigrew6767 3 жыл бұрын
I've been trying to implement this kind of 3D movement for months. Could never get the ramps to work; either slid down them or I couldn't jump. This is perfect, Thank you!
@euanpettigrew6767
@euanpettigrew6767 3 жыл бұрын
Great tutorial, you've earned a subscription from me. Thank you
@sir_timon
@sir_timon Жыл бұрын
thanks a lot, your the first of idk 6 tutorials that worked, i'll add a secret referance to your channel :)
@Kio_Kurashi
@Kio_Kurashi 2 жыл бұрын
2:10 Okay, but _why_ does it work best for your level? What charcteristics influence that decision? I know this is a "in minutes" type video, but I really feel like a lot of stuff was glossed over. I hope if I go looking I can find a more detailed video from you on this topic so that I can learn the nuances while having this video as quick step by step.
@kotarou8530
@kotarou8530 2 жыл бұрын
the size of the enemies and the scenario in general
@kotarou8530
@kotarou8530 2 жыл бұрын
the size of the enemies and the scenario in general
@drsamuelhaydensecretgaming6749
@drsamuelhaydensecretgaming6749 2 жыл бұрын
@@kotarou8530 what implementations would need to be made to upscale the enemy boi
@kotarou8530
@kotarou8530 2 жыл бұрын
@@drsamuelhaydensecretgaming6749 change the height and radius?
@drsamuelhaydensecretgaming6749
@drsamuelhaydensecretgaming6749 2 жыл бұрын
@@kotarou8530 that would be smort, unfortunately I am in a delirious state rn and don't remmeber writing this
@xenasBS
@xenasBS 2 жыл бұрын
I don't know how actively you engage with comments, but I'mm looking to figure out how to make an enemy jump from platform to platform when chasing a player. I see you have platforms in your level, but would this method actually allow for something like that? If so, what would need to be added?
@dourwolf6697
@dourwolf6697 Жыл бұрын
The reason that some people's enemies get stuck is due to y component of the vector created just after 7:19. It needs to be zero. It's basically trying to tell the enemy to simply walk upwards into the sky, which is obviously impossible.
@jayxofficial5126
@jayxofficial5126 2 жыл бұрын
Thanks a lot man this was extremely helpful and fast 👍
@n.lwhitaker572
@n.lwhitaker572 3 жыл бұрын
Just about line by line what we ended up having to do with our enemies, but layer masking the world physics wasn’t quite an option- so characters do indeed get stuck
@rayuserp
@rayuserp 3 жыл бұрын
are you talking about my implementation of this when talking about characters getting stuck? If so I will need to look into it some more and see if i can find a solution
@n.lwhitaker572
@n.lwhitaker572 3 жыл бұрын
@@rayuserp Oh no- our implementation, we had to do about a year ago, I stumbled on your vid on Reddit, curious if you did it differently-
@rayuserp
@rayuserp 3 жыл бұрын
@@n.lwhitaker572 ah i see ok and yeah some other implementations i have seen people do actually dont even add a collision shape for the enemy so they dont get stuck but i don't really like this approach so i opted to instead simply disable collisions for the enemy on the world layer using the collision layers
@jusdee89
@jusdee89 Жыл бұрын
Thank you! Really great video, definitely helped me getting the enemy chasing my player:) my player only immediately gets hurt by the enemy, any idea why that happens?
@danieldarko6495
@danieldarko6495 3 жыл бұрын
One word; Awesome
@vinay_dias
@vinay_dias 3 жыл бұрын
Informative 👍🏻
@rayuserp
@rayuserp 3 жыл бұрын
Glad you think so!
@nowherebrain
@nowherebrain 2 жыл бұрын
EDIT: nvm...you fixed what I mention. you'll get an error when checking the distance_to() < threshhold if you are on the last index..it will index it and will be out of range...I'm sure you know this..you might even fix it further in the video.
@hogandromgool2062
@hogandromgool2062 Жыл бұрын
Glad you watched a little further to realize this. He seems to be a backward progression coder, he writes function bodies before assigning variables.
@VoltitanDev
@VoltitanDev 2 жыл бұрын
Question, would 3d pathfinding be ideal for the enemy patrolling the level as well as chasing the player or would another node be needed?
@rayuserp
@rayuserp 2 жыл бұрын
You can definitely use pathfinding for it though I would combine it with a area node to essentially detect if the player is within the enemy's detection area if so chase the player using pathfinding
@kotarou8530
@kotarou8530 2 жыл бұрын
ty bro, helped me a lot :)
@fikogames7196
@fikogames7196 2 жыл бұрын
i have a static body in the shape of a half-pipe if that makes any sense. but no mesh shows up when i bake the nav mesh. i have made the static body a child of the nav mesh, and it works with other static bodies, but not the half pipe.
@rayuserp
@rayuserp 2 жыл бұрын
hm that's really weird were you able to solve the issue?
@fikogames7196
@fikogames7196 2 жыл бұрын
still no, i’ve been trying for a while
@chocogame1649
@chocogame1649 2 жыл бұрын
thanks!!! bro :)
@drsamuelhaydensecretgaming6749
@drsamuelhaydensecretgaming6749 2 жыл бұрын
How do you make the enemy ai's head follow you?
@ddoober
@ddoober Жыл бұрын
probably using rays
@adnad8458
@adnad8458 3 жыл бұрын
Why not use Godot 3.3.2?
@rayuserp
@rayuserp 3 жыл бұрын
I just haven't updated my version, tho it shouldn't really matter for this tutorial as 3.3.2 is basically the same as 3.3 but with additional bug fixes but I will be updating my godot to 3.3.2 for the next video i do
@SAHILTHEGAMER04
@SAHILTHEGAMER04 20 күн бұрын
someone help for godot4.2 please
@spartam7678
@spartam7678 2 жыл бұрын
how doind for my enemy look at me when he walk
@DexterZCoder
@DexterZCoder 3 жыл бұрын
Oops theres as lot in this channel! SUBS!
@Ryixxx
@Ryixxx Жыл бұрын
my engine crashes if i try to bake sooo..
@rayuserp
@rayuserp Жыл бұрын
What version of Godot are you using? I believe the newest version is using the new navigation server.
@Ryixxx
@Ryixxx Жыл бұрын
@@rayuserp Im using 3.5.1 on Mono. I think it might be baking to many meshes but even when i simplified many things to be 1 mesh such as 4 walls making up 1 big wall i just turned to one long wall using one mesh. i do have spatials but that dont do anything right?
@dva6852
@dva6852 2 ай бұрын
look at?
@greyly_
@greyly_ 2 жыл бұрын
I know it's hard to narrate this kind of step-by-step video, but I want to point out that you say "actually" about 100 times per video.
@asny17
@asny17 Жыл бұрын
Invalid call. Nonexistent function "get_simple_path" in base "Node (game.tscn::15)". Help please
@bedroomvampire
@bedroomvampire Жыл бұрын
i know it's three months ago, but in case someone else looks for it check if the enemy is outside the nav mesh instance but still inside the navigation
@kotarou8530
@kotarou8530 2 жыл бұрын
ty bro, helped me a lot :)
A* Pathfinding in Godot 3D (Godot A* 3D Tutorial #1)
42:02
Master Tilemap PATHFINDING & Obstacle Avoidance in Godot 4.2
25:10
Cashew OldDew
Рет қаралды 19 М.
ТИПИЧНОЕ ПОВЕДЕНИЕ МАМЫ
00:21
SIDELNIKOVVV
Рет қаралды 1,3 МЛН
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 31 МЛН
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 22 МЛН
Enemy AI Series 1: The State Machine
12:10
Garbaj
Рет қаралды 52 М.
Every 3D Node In Godot Explained In 20 Minutes
21:17
Ryan Games
Рет қаралды 8 М.
Godot's Hidden Level/Map Editor
3:39
Garbaj
Рет қаралды 137 М.
Godot 4 - Forest Night Environment From Scratch
36:48
DevLogLogan
Рет қаралды 91 М.
Assault Rifle (Godot FPS Tutorial)
6:41
Garbaj
Рет қаралды 77 М.
All 219 Godot Nodes Explained In 42 Minutes !
42:09
Lukky
Рет қаралды 260 М.
How To Make A Doom Clone In Godot 4
27:57
MizizizizTutorials
Рет қаралды 82 М.
ТИПИЧНОЕ ПОВЕДЕНИЕ МАМЫ
00:21
SIDELNIKOVVV
Рет қаралды 1,3 МЛН