How to climb any wall (in a video game) Godot 3d Tutorial

Channel:
Subscribers:
3,810
Published on ● Video Link: https://www.youtube.com/watch?v=w9GvIzbTIuI



Category:
Tutorial
Duration: 37:57
3,275 views
144


Even though I use the Godot Game Engine this can literally be reproduced in any game engine, I think the logic was explained well enough but there is always some leap in logic I might have made đŸ˜…. This movement system is really similar to a spiderman wall climbing or xenomorph crawling system and can be used to make really cool games.

2D Vector Math hack:
https://gamedev.stackexchange.com/questions/70075/how-can-i-find-the-perpendicular-to-a-2d-vector
Basically, if your vector is (1,2) - so an upward arrow, you flip the x and y, and you are done so the new vector is (2,1) which is a rightward arrow, or perpendicular to the upward arrow (1,2). People say you can flip the x spot but it'll just give you the arrow in the other direction.


Code for project here:
https://github.com/aimforbigfoot/NAD-LAB-Godot-Projects/tree/master/EvenBetterXeno


For the Godot Icon used in the thumbnail: Original Author of the Godot Icon (Andrea CalabrĂ³), changes were made to this icon.
https://commons.wikimedia.org/wiki/File:Godot_icon.svg


0:00 - Intro
0:38 - Basic Explanation
3:00 - Reddit sidetrack
3:42 - Basic Explanation Continued
4:54 - Vector Explanation of Vectors
9:49 - Making the player
11:00 - Ray folder
15:15 - Coding the player (variables)
16:36 - Coding the player (ready function)
16:58 - Coding the player (bodyEntered function)
18:40 - Coding the player (input function)
19:00 - Coding the player (physics process function)
19:39 - Coding the player (check rays function)
24:50 - Xenomorph break
25:34 - Coding the player (check rays function) cont.
26:00 - Coding the player (get_dir function)
29:26 - Jumping and Gravity Systems
32:07 - Coding the player (process function)
32:41 - Done
34:42 - Small issues in the system
32:41 - Finally Done!







Tags:
Wall climbing
Game dev