Hello Guest

Author Topic: Colliders not working  (Read 5398 times)

Bridgeman

  • Newbie
  • *
  • Posts: 24
    • View Profile
Colliders not working
« on: August 12, 2014, 09:07:07 pm »
So I followed this tutorial: http://www.unikronsoftware.com/2dtoolkit/doc/2.4/tilemap/tutorial.html
Then I followed this tutorial: http://www.unikronsoftware.com/2dtoolkit/doc/2.4/tutorial/creating_polygon_colliders.html

I made colliders for every single tile I used in my level, but when I added the Unity 2D player prefab, it just fell through the ground. On top of that, I can't see any of the colliders like in Scene view like in the screenshots. Not in 2D view and not in normal view.

Bridgeman

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Colliders not working
« Reply #1 on: August 13, 2014, 10:59:40 am »
Bump

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Colliders not working
« Reply #2 on: August 13, 2014, 11:24:29 am »
Have you set your sprite collection to 2d physics? Also try creating a box with 2d rigid body and box collider 2d, see if that falls through.

Bridgeman

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Colliders not working
« Reply #3 on: August 13, 2014, 11:43:18 am »
I hadn't actually. It seems to be working now. But I still can't see the actual colliders in Scene view, even though they're there. That's a bit weird.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Colliders not working
« Reply #4 on: August 13, 2014, 12:14:33 pm »
Is it a tilemap you're testing this on?

Bridgeman

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Colliders not working
« Reply #5 on: August 13, 2014, 12:22:45 pm »
Yes

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Colliders not working
« Reply #6 on: August 13, 2014, 01:56:13 pm »
Tilemap colliders only appear when it is committed, or when you press play. It isn't visible otherwise.

Bridgeman

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Colliders not working
« Reply #7 on: August 13, 2014, 03:02:29 pm »
I did commit it, but it still doesn't show, even when I press play

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Colliders not working
« Reply #8 on: August 13, 2014, 03:10:04 pm »
Please either post your project, or a few screenshots - I'm not sure what is going on.

Bridgeman

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Colliders not working
« Reply #9 on: August 13, 2014, 04:43:15 pm »
Oh nevermind, I can see the colliders now. I missed it because my colliders are fitted tightly around my tiles, so it was difficult to see.