Check if triangle collides with any object in certain LayerMask
I am creating a custom navigation mesh and in order to see which triangles in my mesh are traversable I need a way to check if anything on a certain LayerMask in my scene collides with my triangle.
I have already thought about using consecutive RayCasts to "fill in" my triangle, but this seems needlessly complex and computationally slow. Is there a built in function in Unity to achieve this?
.I have also asked this question on Stackoverflow. If you have a good answer, consider posting it there as well.
Your answer

Follow this Question
Related Questions
What is the 3D equivalent of using Physics2D.OverlapArea to check for if a character is grounded? 2 Answers
2D Platformer Character Acts Weird When Collide Side of a Platform 0 Answers
App works fine on PC but not on android 0 Answers
Raycast doesn't work properly 1 Answer
Hit from kinematic rigidbody2d 1 Answer