Question by
M0no · Aug 08, 2016 at 12:58 PM ·
collidercolliderscollider2draycastingtransparency
Is there a mesh collider that detects transparency?
I have lots of meshes for a 2D project that I place on quads (as a material to the quads). They're like "maps"; filled from the inside but have transparent edges.
I make a polygon collider for each map and place it on top of it so that I can use Physics2D.Raycast()
to detect whether the user has placed an object on the map or off the map. They're like shapes (polygons).
The process of making the polygon collider is time-consuming and the quality isn't so good. Is there some Mesh collider that detects transparency and therefore shapes itself to the shape of the map? Or is there a way to make a script that shapes the collider to the shape of the map?
Comment