#14 | COLLISIONS AND TRIGGERS IN UNITY 🎮 | Unity For Beginners | Unity Tutorial

preview_player
Показать описание
Hi everyone! 🙂 In this video I will go over collisions and triggers in Unity,. Collisions are used for detecting when two gameobjects hit each other, and triggers are used to detect when two gameobjects touch each other.

➤ TIMESTAMPS

00:00:00 - Intro
00:01:26 - Collision enter and exit
00:07:37 - Trigger enter and exit

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon and YouTube Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Рекомендации по теме
Комментарии
Автор

My friend, you helped me get my first job with JavaScript and now 5 years later I'm here again to learn another tool, thank you I love your content.

From: 🇧🇷🇧🇷🇧🇷

GlaucoLustosa
Автор

bro, you can explain so good, that my grandmother that can't speak english would understand. Thx man you are the only one, that explains good, doesn't waste time, explains simple and is smart!

Samfn
Автор

I love your explanation. IT is clear and you make it seem so simple. Thanks.

joeturner
Автор

These tuturials by Dani Krossing are by far the best ones for beginners on Unity that i have found. They are recent and up to date and while Brackey and others might have been god at one time, they are outdated using a much older version of Unity and too much have changed. I Hope Dani will try and keep this series up to date when unity decide to make changes.

plasteelgaming
Автор

This is where things get really exciting!

I remember using the map editors for games like Heroes 2 and Warcraft 3, and og Starcraft when I was a kid, and little did I know at that time that using triggered events was the same basic premise as coders were using for all games

Hidesinmud
Автор

man your a genius i have been looking tutorials for collision detection for so long and i finally found it

OliverJ
Автор

Thank you for this magnificent tutorial Blonde Musk!

cemaliinan
Автор

Oh gods, if I knew how to put a lot of likes under this video - I would do it.
A detailed description with several solutions, and explanations for them - this is what I really lacked. It was really helpful.

AmateurGameDeveloper
Автор

Thank you, you made me solve my error that I spent hours on trying to fix

Shrekkerhs
Автор

Brilliant tutorial. Thanks a lot. Saved my graduation project.

amansalim
Автор

Sir make more videos on unity
I love the way you explain ❤️❤️🤞🤞

aadarshsinghbhandari
Автор

how do I use another game objects trigger for the script. because i want to be able to delete the trigger afterword but i have extra parts to the script so i need to make it split.

cheesebucketman
Автор

Thanks, you really help me a lot. Btw, how many videos are going to be in this series?

harshchoudhary
Автор

Hi dani, I am having an issue regarding a trigger on an enemy. I put a collision trigger in which the sole purpose is to activate voice lines when the player enters the collision trigger area. The issue is that the collision trigger is activating all other objects such as pickup, doors, and objectives that softlock the game. I received this project from my instructor, so I have little experience with pure game design.

How can I make it so that the collision trigger only acts for the voice lines and does not trigger anything else? Thank you, and I wish you all the best!

ThaTrickstaProd
Автор

Hey what’s the difference when making a game in mmo and a regular game I been trying to make an mmo game but I don’t know how to start…please help..!!

jordanmusleh
Автор

Hello, I have a problem, in the OnTriggerStay method, does it allow you to use switch(Collider.gameObject), and different cases?, to act depending on which trigger is pressed.
Thank you

sergiopamplona
Автор

Hi Dani could you please explain how to determine contact points while using OnTriggerEnter2D with GetContact?
To check if the player collides with the enemy from above and kills the enemy or collides with the enemy from the sides and takes damage instead.
That would be super helpful! You are a great teacher!

strasznieciekawe
Автор

Great vídeo! I'm working on my first 3D project in Unity right now, just getting to know to engine, and this video helped me understand the "is trigger" option.

I know this is a little off topic, but, I see that you are using a Blue Yeti to record your voice, and the sound quality is so good. I have one too, and I wonder, do you apply any filters or things like that in the post production?

MrJeanMaker
Автор

does the colision datatype have to be in the Ontrigger enter function or i can use it outside of it only to check if there is a colision

dedsec
Автор

That's awesome. Maybe you can help me. I cant fix the problem my Player goes through walls.. Can you make A basics Video about Player movement + walls?

dertobbe