Question by
Seb1101 · Dec 04, 2018 at 01:12 PM ·
c#2d spritespolygon collider 2d
Polygon Collider 2D in 3D space missmatch
Hi,
I am trying to use a polygon collider 2D on a random shape that I cut out from a texture. The texture is therefore 2D and I want a collider to automatically match the edges/borders of my cut shape.
I don't know if I am using the right collider type, but the only one I found that matched somehow the contour of my shape was Polygon Collider 2D. However, as seen in the image, the shape is taken into account but the interior is rotated according to a 2 dimensional space.
However, I am using this texture in VR and it can be anywhere around the player, not only in one flat direction.
Is there an equivalent of poylgon Collider 2D I could use for this purpose, or am I doing it wrong ?
Thank you for your help.
polygoncollider.jpg
(442.6 kB)
Comment