I
I
Ilya_malet2021-10-16 18:30:41
Unity
Ilya_malet, 2021-10-16 18:30:41

How to make objects not pass through the trigger?

I'm making a simple toy, I ran into a problem that the Player object passes through the Enemy object which is a trigger (this is necessary in order to handle bullet collisions), I don't need it, but I need a trigger. Prompt as it is possible to make that objects did not pass through the trigger?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
VityaDev, 2021-10-17
@VITYUSHA

You can check by tag, if an object with the "Player" tag collides with Enemy, then Enemy turns off isTriggered.

N
Nekit Medvedev, 2021-10-18
@NIKROTOS

put a second trigger on Enemy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question