Search Unity

Pollygon collider flipped - Unity bug?

Discussion in '2D' started by Vojta Koci, Aug 20, 2014.

  1. Vojta Koci

    Vojta Koci

    Joined:
    Nov 19, 2013
    Posts:
    64
    Hi. I've noticed something and I'm not sure if there's a way how to fix this somehow...

    There's an object with polygon collider and rigidbody2d and it is a child of any object. The parent has localScale.x negative (let's say -1) and the child has localScale.x positive (+1) (but lossyScale negative, since its parent has localScale -1). With this properties, the child's polygon collider behaves unusually. When the object rotates, the collider rotates in the opposite direction.

    Do you know how to fix this? I'd be glad for any tips...
    Thanks and have a nice day!
    Vojta
     
  2. LunaTrap

    LunaTrap

    Joined:
    Apr 10, 2015
    Posts:
    120