- Home /
How do I trigger a box only when it is fully filled? How do I only enter a trigger when it is fully "entered"?
I have two boxes, first one (the trigger) is a bit smaller, and I only want to OnTriggerEnter2D when the second box is fully ontop of the first box, so that you cannot see box 1. How do I do that? Or is there a other way without triggers?
Comment
Answer by LeFlop2001 · Jun 18, 2020 at 10:50 PM
Use the boxcollider.bounds.countains function for each of the verticies of the target mesh
Your answer
Follow this Question
Related Questions
Problem with 2D Collider Trigger 1 Answer
OnTriggerEnter2D(Collider2D other) 2 Answers
2d game end level with trigger and colission with trigger who to make a if condition 1 Answer
How to continue the work in onTriggerStay, when it disables, for remaining objects? 2 Answers
How to get trigger input on an Xbox controller (Mac) 0 Answers