2D Toolkit Forum
2D Toolkit => Support => Topic started by: Martin on July 06, 2013, 07:50:06 pm
-
I'm trying to use a User Defined Collider Mesh with a tk2dUIItem but can't get it to work. If I replace it with a box collider it works as expected. Are mesh collider supported with tk2dUIItem?
-
It will only work if you have front caps on the collider, i.e. somewhere for the ray to hit it.
Is it enabled?
-
I turned on "Convex" and now it is working, is that the front cap?
-
No, but convex colliders always are closed, they don't need caps.
Under collider type, there is a setting "Collider Cap". Set that to front and back and that'll sort it out for you.
-
I changed it to Front and all working perfect now, thanks!