Questions tagged [polygoncollider2d]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers

PolygonCollider2D components do not work properly in iOS build

I'm trying to figure out why my polygon colliders default to pentagon shapes when I build my app and test it on a device. I have a scene with some blocks you can drag around where the colliders work ...
KD867746's user avatar
0 votes
0 answers

OnPointer events trigger when entering transform, not on custom collider

I want to create a custom UI, specifically an action wheel which offers different actions depending on where or what was clicked. To do that, I create circle segments (slices). I also create a custom <...
ElDuderino's user avatar
0 votes
1 answer

What is an alternative solution to the problem of polygon collider2D not following character (animation)movement?

A 2D game and a bird's eye view of the character. This character, who has a knife in his hand, swings the knife by waving his arm, just at this time, I look at "polygon collider2d" from the ...
gunza's user avatar
  • 13
0 votes
1 answer

How to align the Polygon Collider 2D in Unity to match the position of Sprite?

How to align the Polygon Collider 2D in Unity to match the position of Sprite? I have a game object. It has a Sprite Renderer with an image. Now I add a Polygon Collider 2D component to the game ...
some1 here's user avatar
1 vote
4 answers

Pygame polygon click detection

Here is my problem: I am creating a game and I have a board made out of polygons (hexagons). I want to be able to click on the different tiles but I can't find a simple method. I understood how to ...
Cassayre Valentin's user avatar
0 votes
0 answers

Is a simple PolygonCollider2D really worse than several BoxCollider2Ds?

In my scene I have very simple quadrilateral blocks, which I'm considering using PolygonCollider2D for. These blocks will be the building blocks of the scenery so ...
Eärendil Baggins's user avatar
1 vote
0 answers

Unity Generating PolygonCollider from mesh

I generated a procedural mesh using marching squares and the MeshFilter component (it's 2 dimensional). Now I got the point that I need do collision detection with ...
Bálint's user avatar
  • 14.8k