unity3d - Mesh Collider that detects transparency -
i have lots of meshes 2d project place on quads (as material quads). they're "maps"; filled inside have transparent edges.
i make polygon collider each map , place on top of can use physics2d.raycast()
detect whether user has placed object on map or off map. they're shapes (polygons).
the process of making polygon collider time-consuming , quality isn't good. there mesh collider detects transparency , therefore shapes shape of map? or there way make script shapes collider shape of map?
turns out polygon collider 2d
has feature generate polygon such transparent mesh. drag , drop sprite on polygon collider component.
Comments
Post a Comment