- Home /
Trigger Detecting Player Even When Not Inside
I have created a hiding spot trigger that detects when the player is close by and prompts them with a UI button that allows them to hide within the object. The trigger consistently detects the when the player is inside the trigger without issue, however every now and then the trigger will have a false positive, detecting the player even when the player is nowhere near the trigger. This is most common when the player collides with another object on the map, but is not limited to when the player is colliding with an other object. Any thoughts? Thanks!
Answer by logicandchaos · Jun 12, 2020 at 01:33 PM
I would need to see your scripts to help. Could be if the collision code is on player than other objects could be triggering it, however if the collision script is on the other object it could be triggered by another object. You should also setup your collision matrix so the object can only collide with your player.
Your answer
Follow this Question
Related Questions
How To: One collider for detection; one for collision. 1 Answer
Best Way to Find nearby colliders when you already have a trigger collider on gameObject 1 Answer
basically i am having collider issues and idk wat to do 1 Answer
How would I combine square box colliders into larger rectangles? 0 Answers
Is there a way to tell which way an enemy is going? 1 Answer