How to make a Raycast IGNORE SPECIFIC COLLIDERS in Unity

Опубликовано: 31 Декабрь 2024
на канале: GDT Solutions
4,251
64

In this video we see how to make a Raycast ignore certain colliders in Unity, this can be achieved assigning Layers to GameObjects and then define a Layermask variable to use in one of the overloads of the Raycast function.

How to use Raycast to detect click on GameObjects in Unity:
   • How to detect mouse CLICKS on COLLIDE...  

How to DRAW Raycast in Unity:
   • How to VISUALIZE RAYCAST in the Unity...  

____________________________________________________________
Watch the following repository where I'll be sharing solutions and examples for Unity
👇
https://github.com/GameDevTraum/GDT-S...

https://gamedevtraum.itch.io/

  / gamedevtraum  
____________________________________________________________