Unity Collisions Tutorial - How To Use Colliders and Triggers in Unity | Unity 5 Tutorial

Unity Collisions Tutorial - How To Use Colliders and Triggers in Unity | Unity 5 Tutorial

Bilal

7 лет назад

101,885 Просмотров

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


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

@sjjayaswal7621
@sjjayaswal7621 - 26.12.2022 18:00

Good video

Ответить
@allenxyrilserrano9641
@allenxyrilserrano9641 - 10.10.2022 09:04

This helps a lot! Thank you!!

Ответить
@petarzganec4445
@petarzganec4445 - 03.07.2022 11:05

Correct me if I'm wrong, but wouldn't the code work the same way and be simpler if you just set the bools in the trigger functions directly instead of having separate functions for that?

Ответить
@H0110WF0X
@H0110WF0X - 21.03.2022 09:15

Very Useful. The caveat I found is this only worked for 3d. To get 2D to work I had to change the method signature to `private void OnCollisionEnter2D(Collision2D collision)` to get it working.

Ответить
@samuelduras9665
@samuelduras9665 - 12.01.2022 12:36

You solved my problem!! Thank You!

Ответить
@rousmurph8091
@rousmurph8091 - 02.11.2021 21:14

fantastic video! thank you

Ответить
@mrb1441
@mrb1441 - 25.10.2021 11:06

This is a great vid thanks bro

Ответить
@annexgroup6878
@annexgroup6878 - 28.07.2021 00:17

Excellent Tutorial

Ответить
@YaTa1234
@YaTa1234 - 26.06.2021 14:41

is this working with unity2d

Ответить
@WillArtie
@WillArtie - 18.05.2021 02:01

Thank-you!

Ответить
@macleodgordon
@macleodgordon - 04.03.2021 18:31

Project files removed. Where can I find them now?

Ответить
@abdielinhov1586
@abdielinhov1586 - 08.02.2021 09:26

Yo what did you change because mine has the same that you had but then you changed but did not show it

Ответить
@youssh4975
@youssh4975 - 23.01.2021 17:57

in my case, the object has both a rigidbody and a box collider, and the ground has a box collider too, and the object still falls right through, what could be the problem? none of them have the isTrigger checked

Ответить
@mohamedtarek3798
@mohamedtarek3798 - 11.10.2020 18:59

Lowering the camera a bit in the intro would be better

Ответить
@edvardsmathers3125
@edvardsmathers3125 - 11.09.2020 14:07

No ads, nice!

Ответить
@kiranbhumber6904
@kiranbhumber6904 - 05.09.2020 20:01

link doesnt work to project files!

Ответить
@unhommequicourt
@unhommequicourt - 04.07.2020 14:55

your tutorial is a bit over complicated for something that simple

Ответить
@vargasxr421
@vargasxr421 - 03.06.2020 05:30

Nice Job!

Ответить
@macleodgordon
@macleodgordon - 30.04.2020 19:57

Link you said to click on doesn't work, nor does clicking 'Starter project files' link in the description.

Ответить
@jakubkadlec4285
@jakubkadlec4285 - 10.04.2020 19:11

so finally! video that explains everything person ever wants to know, awesome!

Ответить
@CoryTheSimmons
@CoryTheSimmons - 01.12.2019 20:43

Great tutorial, thank you

Ответить
@swapty7860
@swapty7860 - 20.11.2019 18:51

The door comes up when I start the game. Not when I approach it can you help me

Ответить
@sabrango
@sabrango - 27.09.2019 04:19

THANKS BRO

Ответить
@CraftyMaelyss
@CraftyMaelyss - 13.09.2019 19:17

Heya Omnirift!


I'm having a real conundrum with my mesh collider and have tried absolutely everything I can think of to fix it, but nothing is working.
Basically when I add a Mesh Collider to my model and select that model's mesh from the list, it rotates it by 90 degrees, making it vertical
and with a map, that's a big problem as my characters plummet to their doom in the endless void.

Would you know how to rotate the Mesh Collider, to fix this problem?

Thanks in advance!

Ответить
@hpimpact2872
@hpimpact2872 - 17.08.2019 02:37

likeCount += 1;

Ответить
@jacobhallberg9206
@jacobhallberg9206 - 10.08.2019 17:51

Hey Bilal! I've almost gotten this to work, the only problem is that the doors always get placed at the position set in the script, even if I change the parameters of the Vector3 in the inspector in Unity. So when I try to use several doors at different locations they all get placed in the same location. Why is that happening?

Ответить
@alijumc
@alijumc - 11.07.2019 00:55

Nice video. I have started watching this video a few months ago and I got a few ideas for games. Then I took a course on Udemy and find out that Unity have so many features already build in. So basically the knowledge of the Unity library of all kind of functions is here the biggest issue for the programmer to finish his own project quickly, but the learning curve is pretty fast if you are familiar with the object oriented programming. After a month of learning Unity I am watching this tutorial again and everything is clear. Thanks.

Ответить
@jacobhallberg9206
@jacobhallberg9206 - 01.07.2019 15:25

Hey Bilal! I'm currently working on my first Unity project. I downloaded some asssets from the Unity Asset store that I wanna use. I have a character and a room the character is in. I have added a mesh collider to the character and a box collider to the floor underneath it. But when I click play it just sinks through the floor... Help me, what am I doing wrong??

Ответить
@GraphicalBoss
@GraphicalBoss - 20.06.2019 02:01

Great video! Keep up the work.👍

Ответить
@crystalyu4966
@crystalyu4966 - 13.06.2019 04:59

Very nice tutorial! Thanks! I've followed it through and it works well! But I have one question: why you changed the X and Z values of the closed and opened positions of the door opener to 7.3 and -7.3 and then it worked. But if using the original values that set in the DoorOpender script (.51, 0), it didn't work? Shouldn't the parameter value shown in the GUI be the same as the value described in the script?

Ответить
@goombafang3210
@goombafang3210 - 21.05.2019 17:08

im trying to make a simple game where there is 50 balls bouncing and you have to collect them all as fast as you can. i have the code all set up, but i need to use the is trigger to actually have it work. if i dont and i touch the ball, it doesnt do anything. but if i have the is trigger on, it just falls through the floor without bouncing. is there something im doing wrong, or is this kind of thing impossible?

Ответить
@sahilshaikh3454
@sahilshaikh3454 - 15.05.2019 15:39

It is necessary to add rigidbody component to the player????

Ответить
@xsoldier9519
@xsoldier9519 - 27.04.2019 21:59

Nice video, thank you for your help!

Ответить
@RossYlitalo
@RossYlitalo - 05.04.2019 11:51

Very nice--Thank You!

Ответить
@cmdrsundog5089
@cmdrsundog5089 - 26.02.2019 20:53

Great tutorial. Thanks.

Ответить
@sovanraksa2112
@sovanraksa2112 - 02.01.2019 15:07

Please don't write code that's not relevant to the video itself. Thanks for the tutorial though

Ответить
@badraldeensheksalim3098
@badraldeensheksalim3098 - 27.08.2018 15:36

seriously , You make it so basic , thansk

Ответить
@Maukustus
@Maukustus - 14.08.2018 19:07

The door code???

Ответить
@tania42919
@tania42919 - 18.06.2018 14:26

when i click play, my door just disappears entirely?

Ответить
@leonkohler4359
@leonkohler4359 - 09.06.2018 14:14

Nice video. Helped me a lot. Sub + Like

Ответить
@ninjixfatality
@ninjixfatality - 23.04.2018 04:02

Any reason why my trigger wont even show my debug log? I used an empty game object and put the Collider and script on it.

Ответить
@js81625
@js81625 - 26.03.2018 02:02

Even if have a box collider on the ball goes trough it...

Ответить
@XfStef
@XfStef - 17.02.2018 22:23

my trigger isn't ... triggering... and I have no idea what I'm doing wrong...

Ответить
@charlotte1924
@charlotte1924 - 23.01.2018 14:49

I'm using the main camera as the player with the Hololens. Does it need a Collider or Ridgedbody?

Ответить
@burtn6
@burtn6 - 11.01.2018 11:05

How could you make the door a prefab to use this for multiple doors? The vector 3 closed and open positions are set in the script. Is there a way to just read the door's current position?

Ответить
@mahmoud-quran
@mahmoud-quran - 16.12.2017 15:13

Awesome and straightforward video! Keep it up :)

Ответить
@Bacxiuthangmuoi
@Bacxiuthangmuoi - 30.11.2017 13:34

Thanks you so much! :D

Ответить
@FastestPodcastClips
@FastestPodcastClips - 24.11.2017 21:04

Dont you need a rigidbody for the door too because you are moving the door up ?

Ответить
@ryanchris7262
@ryanchris7262 - 16.11.2017 03:08

thx dude, this tutorial so helping me, to finish my project :D

Ответить