How to Climb Ladders (First Person, Third Person, Unity Tutorial)

preview_player
Показать описание
👍 Learn to make awesome games step-by-step from start to finish.
👇 Click on Show More

🔴 RELATED VIDEOS 🔴

💬 Let's learn how to build an essential feature in so many games, learn How to Climb a Ladder
I'm going to cover two methods, one just approaching and press forward to climb up, just like in Half-Life
And another where you approach the Ladder and press a button to grab onto it, very much like in Elden Ring or Dark Souls.
Doing this is pretty simple, just requires some Physics query and also some trickery so you don't fall off the Ladder.

📝 Some Links are Affiliate links which means it costs the same to you and I get a nice commission.
🌍 Get Code Monkey on Steam!
👍 Interactive Tutorials, Complete Games and More!

If you have any questions post them in the comments and I'll do my best to answer them.

See you next time!

#unitytutorial #unity3d #gamedev

--------------------------------------------------------------------
Hello and Welcome!
I'm your Code Monkey and here you will learn everything about Game Development in Unity using C#.

I've been developing games for several years with 8 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.

I do Unity Tutorials on just about every topic, Unity Tutorials for Beginners and Unity Tutorials for Advanced users.

--------------------------------------------------------------------
- Other great Unity channels:
--------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

👍 Learn to make awesome games step-by-step from start to finish.
👇 Click on Show More


🔴 RELATED VIDEOS 🔴

CodeMonkeyUnity
Автор

I discovered your channel a few months back and it's genuinely one of my favorite channels because you help me with almost anything I need

yaboishadowninja
Автор

I am following you for years now, and just want to thank you. You are the reason I’m a full time game developer in a company

jordindiproduction
Автор

Good tutorial as always! However, I think you skipped over the more difficult problem with ladders - climbing down them from the top. It isnt a problem for short ladders where you can just jump of the ledge but for the taller ladders (like your ladder on the building) it is important.
It is difficult to implement as you are approaching the ladder from the wrong side and cant rely on a simple state change to "onLadder", you need to orientate the player first before they can move up and down. I usually do this by lerping the players position and rotation to a known good position when the player approaches the ladder from above. This does take control away from them for a few seconds though.

MrMikeCool
Автор

Great tutorial! Ladders always seamed daunting to program. Now when I eventually want ladders in a game I make, I know a great tutorial to watch.

Robertganca
Автор

Fantastic thanks Code Monkey. Another awesome walkthrough of something difficult. Love your way of teaching and the thought processes to solve a problem. Your courses are excellent. We need some Code Monkey apparel!

kerbalette
Автор

Although tutorials does not work as soon as it is published, every time I start a new project, I take a look at many of them again. There's enough to make a bunch of games almost from scratch. Keep going!

mtbbk
Автор

Since you're starting from Unity's official starting assets this is really useful to me personally. I'd love a video where you just go over how you'd adapt the starter assets to your code style or for certain features, for example, if you don't like how the Cinemachine Input Provider works and want to lock the camera's x movement.

batattitude
Автор

Your videos are always awesome! Short, sweet, to the point, but still very informative. I have just moved from 2D to 3D programming, and I'm sure this will come in very handy very soon 😁

mechasmoke
Автор

oh man, i tried like three times to make a ladder system in a 2.5D game, all of them were buggy af, this comes handy, thanks cm

CertraX
Автор

Raycasts really is so useful :D using them a lot on my current side project at Uni for my game. Combining it with Navmeshes and such. I have a lot to learn but it's lots of fun and this tutorial was really useful for ideas :)

BNTO
Автор

as someone going into the house painting profession, I am very grateful for your tutorial. Ladders always seemed so daunting but now I know how to handle them. Thank you so much. love from south Sudan.

azzy-
Автор

Another useful Tutorial.
I will surely use this one soon for a more robust 3D 3rd Person Character Controller.

Thank you!

alec_almartson
Автор

I didn't know how to climb ladders until now.
Thank you CodeMonkey.

daizl
Автор

Hi! This works great, exept it only works well when the ladder is facing the right direction, if the ladder is rotated for example 180degrees it doesn't work anymore.. I guess it has something to do with the targetDirection, that I should use the ladders axises when moving up or down. I'll try to figure this out but if you have some ideas i would be greatly appreciated. btw i'm using unitys standard fps asset just like you in this video. Some things in it are named a bit different now compared to year ago, maybe the code is a bit different?

TheZeiZei
Автор

Just curious, why do we check for the vector being in the up direction instead of forward if the ladder is in front of us?

bnieves
Автор

Thanks for giving such a good tutorial! From my understanding, this will work great for climbing a ladder from floor. But I am just curious about, do the logic works for climbing down the ladder from roof (top) as well for this tutorial's script?

leowu
Автор

That's really impressive, I mean the way you solve issues and creating the mechanics. I know the experience has it's role, but there must be tips to learn solving the issues and how to make the mechanics that you want. so how can I learn these skills?

alijaras
Автор

Thanks for the great content. Constantly impressed with the rate you put these out.

RE: Unity Overview Course
I took your turn-based course on Udemy (which was great) and every now and then I'll look at the Overview Course when you promote it. I always end up just clicking back however, because the contents are kind of a "wall of text" slap in the face. Feels like the course would be a lot more digestible and accessible if the lectures were grouped into different sections based on the topics they cover. Just a suggestion, maybe Udemy makes this difficult? I'll probably end up getting it eventually anyway once I make my way through my current stack of courses.

antijulius
Автор

Thank you, great video. Is raycasting for a ladder every frame cheaper/more performent than a box collider trigger on the character that only collides with ladders?

jacobester
welcome to shbcf.ru