Godot 4 3D Platformer Lesson #13: Align Player with Ground!

Опубликовано: 29 Март 2025
на канале: BornCG
11,846
455

In this lesson I'll show you how to improve the movement of our game's player, by making it always align with the ground it's walking on. This involves a few lines of code we'll separate into its own custom function with some 'BIG' 3D transformation mathematical concepts, but let's take it step by step!

Thanks for watching! Here are the video chapter timecode links:

0:00 - Video Intro
0:07 - Where our project stands & Overview
1:07 - Adding a RayCast3D to Steve
4:06 - Starting to Code, & Classes Used
5:59 - Xform Var & Custom Function
14:56 - Coding: Cross product & Orthonormalize
18:18 - Coding: Smoothing Transitions
20:42 - Fix: Player Jumping Orientation
22:10 - Issue Fix(?): Edge Transition Flickering
25:27 - Final Code, Wrap-Up & Outro

Don't forget to LIKE & SUBSCRIBE! 🥰 👍

*note: in this lesson I use Godot 4.1

Play and Download the Finished 3D Platformer Game Online Now!: https://borncg.itch.io/3d-platformer-... (use: Chrome/Edge/Firefox to play the web game version)
*****************
DONATE to support my channel via PayPal: https://goo.gl/ThkwyG

********************************
LIKE and FOLLOW me on:
FACEBOOK:   / borncg  
INSTAGRAM:   / born.cg  
X / TWITTER:   / borncg  
Reddit:   / borncg  
**********************************
Visit this Godot 4 Beginners: 3D Platformer Course playlist!:
   • Godot 4 Beginners: Learn to make a 3D...  

Visit my Let's Learn Blender! Tutorial Series playlist:
   • Let's Learn Blender!  

****************
Nicolas from the band 'The Lazy Saviours' created my Intro Jingle!
****************