So I have a character that consists of:
- A sprite from a sprite-sheet with an attached sprite animator.
- A head that is fixed to an attach-point in the sprite-collection. (The head is not part of the sprite-sheet containing the body, it is a separate, single sprite).
All of my sprites have polygon colliders mapped directly to the sprites edges.
I'm using this script to turn the sprite based on mouse position:
This works.
-> Now the bug is, if the sprite that I'm flipping is in a sprite-sheet and NOT a separate single sprite in the sprite-collection, the sprite flips, but the polygon collider does not. If I manually click FlipX in the editor in scene mode it works fine, as soon as I enter game mode it does not work. Trimmed box works fine.
Also,
the head sprite flips fine, so I'm guessing this only happens if the sprite is in a sprite-sheet and has a polygon collider, like I said.
Also, maybe this isn't a bug after all and I'm making some dumb mistake or something, in that case I'd appreciate any input.
As always, thanks in advance!