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

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

Dani Krossing

2 года назад

58,106 Просмотров

Ссылки и html тэги не поддерживаются


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

@harshchoudhary1463
@harshchoudhary1463 - 16.04.2022 21:04

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

Ответить
@cb_sp5022
@cb_sp5022 - 17.04.2022 14:26

nice video










:)

Ответить
@MrJeanMaker
@MrJeanMaker - 17.04.2022 15:13

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?

Ответить
@jordanmusleh6305
@jordanmusleh6305 - 17.04.2022 23:51

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..!!

Ответить
@mimsadsafarpour6592
@mimsadsafarpour6592 - 19.04.2022 09:47

Hi, will there be any video about the interface in unity?

Ответить
@mr.someone6205
@mr.someone6205 - 25.04.2022 02:52

You look different like almost two different people

Ответить
@GamerOfPlays
@GamerOfPlays - 27.04.2022 12:55

at some point can we watch how you would make a small game

Ответить
@aadarshsinghbhandari3233
@aadarshsinghbhandari3233 - 01.05.2022 10:59

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

Ответить
@aadarshsinghbhandari3233
@aadarshsinghbhandari3233 - 01.05.2022 11:01

Sir make video on animation,animator,UI and explain its components.


I get bored when read unity documentation .

Ответить
@strasznieciekawe
@strasznieciekawe - 24.06.2022 12:00

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!

Ответить
@cheesebucketman1606
@cheesebucketman1606 - 03.11.2022 03:32

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.

Ответить
@bvitytwrbq
@bvitytwrbq - 17.11.2022 16:40

Ball!

Ответить
@OliverJ440
@OliverJ440 - 08.12.2022 01:00

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

Ответить
@ThaTrickstaProd
@ThaTrickstaProd - 09.12.2022 16:08

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!

Ответить
@NomansSkywalker
@NomansSkywalker - 31.12.2022 00:15

Elon musk??

Ответить
@GlaucoLustosa1
@GlaucoLustosa1 - 05.01.2023 06:17

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: 🇧🇷🇧🇷🇧🇷

Ответить
@AmateurGameDeveloper
@AmateurGameDeveloper - 24.01.2023 23:00

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.

Ответить
@truelove3228
@truelove3228 - 01.02.2023 13:47

bro dont say my ball 😆

Ответить
@Shrekkerhs
@Shrekkerhs - 23.02.2023 20:08

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

Ответить
@Samidev69
@Samidev69 - 07.04.2023 20:26

how do i check which side of an object i am touching?

Ответить
@amansalim2301
@amansalim2301 - 24.04.2023 23:00

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

Ответить
@dedsec1175
@dedsec1175 - 03.07.2023 15:28

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

Ответить
@dertobbe1176
@dertobbe1176 - 08.07.2023 01:33

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?

Ответить
@sergiopamplona1676
@sergiopamplona1676 - 09.07.2023 19:37

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

Ответить
@donaldfaulknor2149
@donaldfaulknor2149 - 05.10.2023 07:16

Nope. Wrong. You can't enter a collider if you don't set is Trigger to true. And if you do that, you will go through the ball instead of hitting it.

Ответить
@jonathanbrown6616
@jonathanbrown6616 - 17.01.2024 16:33

the trigger wasn't working at all

Ответить
@chicho5093
@chicho5093 - 29.01.2024 00:51

You are great explaining.

Ответить
@Sam4Progress
@Sam4Progress - 10.03.2024 23:13

So this is how I can talk to girls! kidding of course! But this is very interesting stuff! I was looking for a method to have a continuous Collision or Trigger event that I could control how often it happened within 1 second. Using OnCollisionStay is entirely to much, and there's no way to control it. How would you get a happy middle ground between OnTriggerEnter and OnTriggerStay?

Ответить
@plasteelgaming
@plasteelgaming - 31.03.2024 14:07

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.

Ответить
@gulzila
@gulzila - 02.04.2024 03:26

Hi Dani - Great tutorial. I have an issue where trigger collider covers up a game object that I want to click on. Is there a way where my gameObject would always have a priority of getting a click event? I tried to put it on different levels but doesn't work. I ended up with hacky solution where if object enters trigger, I make it smaller and on exit, I reset trigger to original size. Any suggestions would be appreciated.

Ответить
@cemaliinan5510
@cemaliinan5510 - 29.04.2024 09:42

Thank you for this magnificent tutorial Blonde Musk!

Ответить
@FP-ih1lu
@FP-ih1lu - 30.04.2024 20:45

How can I make the bullet pass through objects? My bullet is spawning inside my player, detecting the player, then disappearing.

Ответить
@Sam2fn
@Sam2fn - 13.05.2024 20:02

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!

Ответить
@Hidesinmud
@Hidesinmud - 22.06.2024 22:51

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

Ответить
@zaqk2
@zaqk2 - 29.06.2024 22:46

You look like Elon Musk... Nice tutorials btw :)

Ответить
@joeturner3970
@joeturner3970 - 14.07.2024 13:23

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

Ответить
@BorchikYes
@BorchikYes - 24.08.2024 20:35

for some reason whenever I type OnTrigger it doesnt autocomplete and if I type it out myself it doesnt work.

Ответить
@whoopdeefriggindoo
@whoopdeefriggindoo - 19.09.2024 14:59

Awesome!
I'm learning to code c# thanks to you!
Keep it coming!

Ответить
@msmigs1173
@msmigs1173 - 29.10.2024 23:35

I have an unusual issue. I have both a collider set as a trigger and a collider that is not set as trigger on my object. In a script I use OnTriggerEnter to only detect when the collider with the trigger interacts with something. However, OnTriggerEnter is being called twice even though I only have one trigger. Even when i literally disable the collider that is set as trigger the one not set as trigger somehow still calls OnTriggerEnter. I am so confused.

Ответить