2D Toolkit Forum
2D Toolkit => Support => Topic started by: Pfaeff on September 04, 2016, 08:28:31 pm
-
Hi there,
I am experiencing a strange issue regarding 2D colliders. I have a tilemap set up that uses tiles with different collider types. Most of the time, everything works fine, but there is a case where the player is not repelled by an obstacle but rather pulled directly into it. And I can not explain why this happens.
I made a quick video of the issue and my setup here: https://www.youtube.com/watch?v=omz3CQWSMBQ (it has annotations to highlight what's going on)
Any idea what's happening and what can cause this?
Greetings,
Pfaeff
PS: Crosspost in the Unity Forum: http://forum.unity3d.com/threads/collider-glitch-sprite-being-pulled-into-collider.429606/
-
I identified the problem: https://www.youtube.com/watch?v=19IEFWtWQFg
It seems as if the collider isn't put together correctly. I suspect the "WeldVertices()" routine in tk2dTileMapColliderBuider2D is the cause of this.
-
Interesting...
Can you submit a repro in the private support forum? I could take a quick look to see what's causing this.