When i flip, the sprite moves
I rotated the game Object 180 on the y axis, but when i do so the game Object moves to the game Object side of the screen. There is an attached photo of my unity hierarchy and properties and a video from drive of what is happening.
[here][2] [2]: https://drive.google.com/open?id=14mDxvjYJntH4fWAQpG_zFmsk5GrHNuqD
Edit: I changed the pivot point but when i play the object goes away from its original position and its pivot point changes again
Answer by Mouton · Sep 28, 2019 at 06:59 PM
From your screenshot, we can see your collider is absolutely not centered, so there is an offset on your flip. Something may be messed in your hierarchy, look at the GameObject, the children, the parents. Once the BoxCollider will be centered in 0, your flip will work as you expect.