Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Sticking with Vector2 on a 2D game?

$
0
0
Hello, I've worked entirely with 2D games with unity and so far I noticed that every once in a while, I have to either convert Vector3 to Vector2 manually or cast vectors so that I can say for example, perform operations, especially when I'm getting a position of a gameObject.

Is there a way to work entirely with Vector2?

or from a different approach... would it be better if I just work entirely with Vector3 and just ignore the z axes instead wasting code with casting and such?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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