From Beginner to Pro: Mastering Unity's Colliders

From Beginner to Pro: Mastering Unity's Colliders

AnanDEV

1 год назад

7,062 Просмотров

In this Unity tutorial, we'll be discussing how to create and use colliders in Unity. We'll cover topics like how to create colliders, OnCollision and OnTrigger events, how to set collision filtering preferences, and more!

If you're new to Unity or want to learn more about collision filtering, then this tutorial is for you! We'll cover everything you need to know to create and use colliders in Unity for efficient game development. Let us help you master Unity's Colliders!

****************************
LINKS MENTIONED IN THIS VIDEO:

Rigidbodies (Learn more about Collision Detection) 👇
https://youtu.be/Y3xkgpCukow

Collectibles (Collision filtering + Inheritance) 👇
https://youtu.be/Vo3RDWiupCg

Collision Detection Algorithms 👇
https://docs.unity3d.com/Manual/ContinuousCollisionDetection.html

Modular Castle Asset Pack 👇
https://assetstore.unity.com/packages/3d/environments/dungeons/modular-castle-121360

Read more about Colliders 👇
https://docs.unity3d.com/ScriptReference/Collider.html

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

For doubts and stuff, join our discord club👇
https://discord.gg/kVjSMDHMda

Check out my Instagram 👇
https://www.instagram.com/anandev.0/

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

TIMESTAMPS🔍

0:00 Colliders in Unity
1:07 How to add colliders
1:28 Compound Colliders
3:03 Physics Materials
3:27 Static and Dynamic Colliders
3:54 Collision Detection
4:07 OnCollision Events
6:20 Triggers
6:57 OnTrigger Events
7:50 Trigger Detection with compound collider (Example)
9:07 Filtering Collisions
9:20 Using Tags
9:53 Using Layers
10:35 Tags vs Layers
11:19 Using GetComponent() function
11:48 Using Collision Matrix
12:35 IgnoreCollision()
13:36 Which Collision Filtering to Use?
13:58 Class Inheritance and Collisions?
14:34 Outrooooooo

#unitytutorials #gamedevelopment #unity3d #unitytutorial #collision

If you have any questions, comment below, and I will try to answer them to the best of my knowledge.

Thank you for watching the video and reading this description. Take care.

Тэги:

#unity #unity_colliders #colliders #colliders_in_unity #collision_filtering #how_to_add_colliders_in_unity #unity_tags_vs_layers #unity_collision_matrix #unity_oncollisionenter #unity_ontriggerenter #ontrigger_events #unity_collision_events #unity_trigger_events #unity_collision_detection #unity_colliders_and_triggers #unity_compound_collider #unity_tutorial #unity_tutorial_for_beginners #unity_beginner_tutorial #unity3d #unity_game_development #game_development #game_dev
Ссылки и html тэги не поддерживаются


Комментарии:

AnanDEV
AnanDEV - 28.07.2023 16:57

Sorry for the loud sound effects 😭
That's it.
Have a beautiful day :)

Ответить
AbdelQader
AbdelQader - 03.08.2023 22:07

you are doing great work .. keep up ..
can you make a video about how is unity working in background
i mean what is the main class in unity and what is mean by namespace and this stuff
thanks

Ответить
Ed Cole
Ed Cole - 02.08.2023 20:35

This deserves more views. So concise! One way you could have gotten around the compound collider for your character is to create an empty object in the hierarchy of your player with a tag of "PlayerPresence" and a trigger capsule collider then check if the door has OnTriggerEnter/Exit with that tag. Your example is good if you want to be more precise, but in the case of the door you probably don't need to be.

Ответить
devSSEM
devSSEM - 31.07.2023 16:41

You made one of the best Unity tutorials I've ever seen.😍

Ответить
Gabreilius Gen
Gabreilius Gen - 31.07.2023 09:47

Here before this channel blows up!!

Ответить
Daniel Benedicto
Daniel Benedicto - 30.07.2023 07:33

Thank you for your video, clear, concise and very educational. Almost always, we think that because they are basic topics they are not so important, but they really are.
I just discovered your channel and I find your content very good. Great job!

Ответить
v0lt
v0lt - 29.07.2023 02:17

To not get performace hit if you use the getComponent function and returns null use the tryGetComponent function instead which returns a boolean if the component you are looking for is null or not and outputs it if it isnt without any performance hits if its not

Ответить
Spyboticer
Spyboticer - 28.07.2023 21:37

Been having a hard time with my collisions in my prototype,this vid might have been the answer to my issues😂

Ответить
Dusklight Creations
Dusklight Creations - 28.07.2023 16:15

The best video i stumbled upon .you earned a sub bro,the only request i would have is upload frequently and stick to the topics like this and can you tone down sound effects a bit low .

Ответить
Jean-Loup Martin
Jean-Loup Martin - 28.07.2023 14:37

Very cool vidéo ! The sound effects are a bit too loud for me :)

Ответить