Godot 4 3D Platformer Lesson #15: Collision Layers & Masks!

preview_player
Показать описание
In this lesson I'll show you how prevent object collisions between objects that shouldn't collide! eg: We wouldn't want a falling block to trigger the level's FallZone to end the game, and we wouldn't want an enemy collecting a coin for you! These types of objects shouldn't interact. We'll solve these problems by categorizing game objects into physics/collision layers, and using collision masks to determine the other objects any object can collide with. We'll cover all this and setup our game to work with layers and masks in this lesson!

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

- 0:00 - Video Intro
- 0:07 - What's Happening between objects in our level?!
- 1:25 - Overview
- 3:13 - Setup: Naming 3D Physics Layers
- 4:32 - Setting up the Player's Layers and Masks
- 6:22 - Ground: Collision Layers & Masks
- 6:22 - Ground: Collision Layers & Masks
- 7:32 - Falling Blocks: Collision Layers & Masks
- 8:30 - Coins: Collision Layers & Masks
- 9:09 - FallZone: Collision Layers & Masks
- 9:28 - Solving a Bug: Don't forget about RayCasts!
- 10:20 - Testing Everything!
- 10:43 - Wrap-Up & Outro

Don't forget to LIKE & SUBSCRIBE! 🥰 👍

*note: in this lesson I use Godot 4.1

*****************

********************************
LIKE and FOLLOW me on:
**********************************
Visit this Godot 4 Beginners: 3D Platformer Course playlist!:

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

****************
Nicolas from the band 'The Lazy Saviours' created my Intro Jingle!
****************
Рекомендации по теме
Комментарии
Автор

Found your tutorial series about 2 weeks ago. It's been one of the easiest yet informative tutorial series I've found. I even started your blender series even though I wasn't originally interested in learning blender, but the way you teach the subject makes it so easy to follow. Thanks!

Vamproom
Автор

Ok thanks for the tutorials and I appreciate your efforts.

Govindhuujh
Автор

I appreciate your work so much! I'm following along and it's so rewarding! Thank you!🙂

Milena-vxq
Автор

waiting for last 1 month.i have watch and impliment every single video of this course

dr.ataurrahman
Автор

Thank you as always, can't wait for the next chapter! this game is starting to look awesome :D

dgc
Автор

I wish unreal engine had this layer and masking feature.

rremnar
Автор

May you do character animations next? (: please

Scarabola
Автор

I appreciate your work too much! I'm watching you from Egypt
Can you please teach us how to make 2d game using Godot 4 not 3😅 thank you for your support ❤❤❤

CodeKeys-jg
Автор

one thing that did not come over clearly to me: If player's mask has collision on with the ground but ground not with player will it still collide ? is this rather an 'or' logic or 'and' logic ?

gerhardgubler
Автор

Broo you are taking too much time for making videos please do it fast😅

Govindhuujh
Автор

I put the blocks on a different layer than 'item' ("object" layer) because I think the 'item' layer should just be for things the player can pick up and collect, while the blocks are things the player can just interact with in the level. Then the blocks could be both something that the player could use in the level or they could be obstacles just to get in the players way. The blocks don't interact with items, so you can have items hidden inside of blocks that the player can discover when they push the blocks away. Also I don't remember us making it so the player can push the blocks around, but my player is able to just do it. 🤔Now I just need to make different sized blocks with different amounts of weight that are harder for the player to push around.

SovereignVis