- Home /
2D project with movement along Z and X?
By default 2D projects are set to move along the Y and X (at least that's how their collisions are constrained). I'm trying to make a top-down 2D game, and I understand that you can fake it by just rotating the 'floor' to face negative Z and move along X and Y. My problem is I have a complex pathing mechanic and building-setting functionality tailored to work on the floor grid, and would rather not have to rewrite the code to change this for something vertical.
Is there a way to either: flip Unity's Z and Y, or, better yet, get Unity's 2D collisions to be parallel to the ZX instead of YX>
Answer by Kiwasi · Jul 03, 2014 at 07:35 PM
You could always wrap Vector3 so it returns the coordinates flipped around.
Your answer
Follow this Question
Related Questions
Per-Sorting Layer Collision 1 Answer
OnTriggerExit2D not working on android (but works in editor) 0 Answers
Physics2D.OverlapCircleAll returning colliders outside of the area 1 Answer
collider2D not work 4 Answers
Collider keypad 0 Answers