2D Toolkit Forum
2D Toolkit => Support => Topic started by: Der_Kevin on November 03, 2013, 11:46:50 am
-
Hey,
I have a question related to the Box Custom Collider in tk2d
I am currently working on some top down game and for that i need several layers of object on the Y Axis.
But when I am creating a collider (Box Custom) and Set the Collider depth up to 3 the Collider always expands in both sides of the Y axis.
(http://img405.imageshack.us/img405/8574/jcgk.jpg)
but i want the collider start at the bottom and ends on the rooftop. I already changed the Anchor to Upper Center but this does not work.
Could you please tell me where to change the Settings to make this possible?
-
There isn't a away to adjust the z values on the sprite. If you need to disallow collisions between certain kinds of objects - unity layers + collision matrix might work for you? Alternatively, if you think you absolutely need the z offset thing - I can tell you what to change in the code.
-
Ok, thanks for the reply,
its ok. i think its pretty rarely that you can enter a rooftop so if this will be the case i will just add a collider manually to my scene.
but i just wanted to be sure that its not my fault that it is not working ;)
so, thanks :)