- Home /
Question by
masterfire25 · Jun 03 at 09:27 PM ·
collision detectionoverlapintersect
How can I detect/find which meshes are colliding with a mesh?
When I rotate the rectangle 180 degrees on the Z axis, it now intersects with one of the cubes below. I am trying to detect/find which gameobjects are intersecting after this rotation.
I have tried using triggers with colliders/rigid bodies, however this doesn't work because the rectangle is instantly rotated. (so there seems to be no collider events being fired when it rotates)
I have tried using OverlapSphere() and OverlapBox() but this doesn't fit when using rectangles.
How can I get the game object(s) the white rectangle is colliding with?
screenshot-1.png
(40.7 kB)
screenshot-2.png
(44.0 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613061342im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How does OverlapAreaNonAlloc (non) allocation works? 1 Answer
Test If Two Colliders Overlap 0 Answers
I can't manage to detect my collisions 0 Answers
Object intersection 0 Answers