Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

How to handle multiple colliders for one enemy and bullet.

$
0
0
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?

Viewing all articles
Browse latest Browse all 1488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>