Quantcast
Channel: Answers for "Flipping a 2D sprite based on direction along the x axis (2D)?"
Viewing all articles
Browse latest Browse all 4

Answer by Fubiou

$
0
0
I just found a simple way to flip the character without any problem: just try this! transform.localEulerAngles = transform.eulerAngles + Vector3(0,180,-2*transform.eulerAngles.z);

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>