Godot 4 3D Platformer Lesson #22: Enemy (Part 3)! : Cliff-Detection! Auto-Turn-Around @BornCG
Godot 4 3D Platformer Lesson #22: Enemy (Part 3)! : Cliff-Detection! Auto-Turn-Around  @BornCG
Uploaded March 2025 | Updated September 2026, 2 weeks ago
In this lesson we'll add to our game level enemies the ability to detect & turn around at a cliff when an enemy approaches one! We'll enable this per-enemy, so that we can decide which enemies will fall off cliffs (& stairs), and which ones won't, using an @export-ed variable.

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

- 0:00 - Video Intro
- 0:07 - Recap (of Enemy Lessons Part 1 & Part 2)
- 1:26 - Overview (of this Lesson)
- 2:15 - Getting Started with a RayCast3D
- 4:48 - The RayCast3D's Collision Layer
- 5:24 - Coding: Detecting a Cliff & Turning Around
- 11:05 - Enabling Cliff Detection Per-Enemy
- 14:00 - Wrapping Up: This Lesson's Code
- 14:32 - Wrap-Up & Outro

Don't forget to LIKE & SUBSCRIBE! 🥰 👍

❤️ DONATE ❤️ to support my channel via PayPal: goo.gl/ThkwyG

*****************
Play and Download the Finished 3D Platformer Game Online Now!: borncg.itch.io/3d-platformer-game (use: Chrome/Edge/Firefox to play the web game version)
*****************
*note: in this lesson I use Godot 4.1
********************************
LIKE and FOLLOW me on:
FACEBOOK: facebook.com/BornCG
INSTAGRAM: instagram.com/born.cg
X / TWITTER: twitter.com/BornCG
Reddit: reddit.com/u/BornCG
**********************************
Visit this Godot 4 Beginners 3D Platformer Course playlist!:
youtube.com/playlist?list=PLda3VoSoc_TTp8Ng3C57spnNkOw3Hm_35

Visit my Let's Learn Blender! Tutorial Series playlist:
youtube.com/playlist?list=PLda3VoSoc_TQrLrt-voecHs0Mb5qzk2S3

****************
Nicolas from the band 'The Lazy Saviours' created my Intro Jingle!
****************
Godot 4 3D Platformer Lesson #22: Enemy (Part 3)! : Cliff-Detection! Auto-Turn-AroundBlender 2.7 Tutorial #61: Lego Person (Part 3) #b3dGodot 4 3D Platformer Lesson #16: Animated Coin Bounce!Godot 4 3D Platformer Lesson #23: Reusable Moving Platforms!Blender Game Engine Basics Tutorial #0 : Series Intro #b3d #gamelogicGodot 4 3D Platformer Lesson #21: Enemy (Part 2)! : Collisions & SquashingBlender 2.7 Tutorial #70: Speeding Up Cycles & GPU Rendering with CUDA #b3dBlender 2.7 Tutorial #42 : Face Rigging (Part 2/3 : Shape Keys and Drivers) #b3dBlender Game Engine Basics Tutorial #8 : Shooting #b3d #gamelogicGodot 3.5: Lets Build a 2D Platformer!: Part 24 (Jump on a Button to Reveal Blocks!)Blender 2.7 Tutorial #52 : 10 Essential Camera TipsBlender 2.7 Tutorial #68: Shattering Objects with Cell Fracture #b3d
BornCG |

Godot 4 3D Platformer Lesson #22: Enemy (Part 3)! : Cliff-Detection! Auto-Turn-Around

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER