'Unity 2D : collision with light
I was trying to make a game where when you touch a light you cant pass through it or you get damaged so what i really wanted to do was using hard light or creating something like hard light for a platfromer game.
Solution 1:[1]
I think I understand what you mean, what you can try to do is to use a cube or any other object with collider and with specific shader. If you have 2D game I recommend you to watch this video or learn more about shadergraph For damage you can use the simple health script and OnTriggerEnter function to reduce health.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Raining Cycles |