Hello Guest

Author Topic: How to change Colliders pivot? (Box Custom)  (Read 4033 times)

Der_Kevin

  • Newbie
  • *
  • Posts: 8
    • View Profile
How to change Colliders pivot? (Box Custom)
« 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.



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?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: How to change Colliders pivot? (Box Custom)
« Reply #1 on: November 04, 2013, 12:57:19 pm »
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.

Der_Kevin

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: How to change Colliders pivot? (Box Custom)
« Reply #2 on: November 04, 2013, 05:16:57 pm »
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 :)