Hi,
In one particular enemy has two triggers. one is to detect when player enters it to activate it's firing and another one that detects when player bullets enter it.
Imagine it's a turret with a proximity sensor that when you get close to it, it fires at you.
Problem is when player bullets enter the first trigger (which is obviously bigger than the 2nd one) it detects that the triggers belongs to enemy and hurts the enemy but in fact it should ignore such collisions and the 2nd trigger should be part of it's interest.
How can I solve this?
↧