- Home /
Question by
Leucaruth · Apr 13, 2014 at 06:54 PM ·
rotationrigidbody2dcollider2dpolygoncollider2d
Problem with rotation in unity2D with PolygonCollider2D
Hi
I have been testing how Collider2D works and I have found some bit of trouble.
If you have a sprite and add a PolygonCollider2D, or any other kind of collider2D, if you rotate it in the X or Y axis, the collider will adapt to the sprite, thats good.
The problem is if I add a RigidBody2D, as it will ignore the X or Y rotation and reset it as if those values were 0, even if the sprite is still rotated. Everything returns to normal if I remove the RigidBody2D.
I don't really understand why this happens and if this could be avoided as I would really like to play with this kind of rotation.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613142628im_/https://answers.unity.com/themes/thub/images/avi.jpg)