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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -