Hello
Guest
Home
Help
Search
Login
Register
2D Toolkit Forum
»
2D Toolkit
»
Support
»
tk2dUIItem support mesh collider?
« previous
next »
Print
Pages: [
1
]
Author
Topic: tk2dUIItem support mesh collider? (Read 6489 times)
Martin
2D Toolkit
Newbie
Posts: 17
tk2dUIItem support mesh collider?
«
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?
Logged
unikronsoftware
Administrator
Hero Member
Posts: 9709
Re: tk2dUIItem support mesh collider?
«
Reply #1 on:
July 06, 2013, 07:59:18 pm »
It will only work if you have front caps on the collider, i.e. somewhere for the ray to hit it.
Is it enabled?
Logged
Martin
2D Toolkit
Newbie
Posts: 17
Re: tk2dUIItem support mesh collider?
«
Reply #2 on:
July 06, 2013, 08:55:04 pm »
I turned on "Convex" and now it is working, is that the front cap?
Logged
unikronsoftware
Administrator
Hero Member
Posts: 9709
Re: tk2dUIItem support mesh collider?
«
Reply #3 on:
July 06, 2013, 09:02:40 pm »
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.
Logged
Martin
2D Toolkit
Newbie
Posts: 17
Re: tk2dUIItem support mesh collider?
«
Reply #4 on:
July 06, 2013, 09:14:46 pm »
I changed it to Front and all working perfect now, thanks!
«
Last Edit: July 06, 2013, 09:17:26 pm by Martin
»
Logged
Print
Pages: [
1
]
« previous
next »
2D Toolkit Forum
»
2D Toolkit
»
Support
»
tk2dUIItem support mesh collider?