Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Dealing with 0 as the centre?

Discussion in '2D' started by Amon, Dec 28, 2013.

  1. Amon

    Amon

    Joined:
    Oct 18, 2009
    Posts:
    1,384
    As some have noticed the world centre for Unity2D is 0,0. This makes it difficult for me to port code over from other languages where 0,0 is the top left part of the screen.

    Some things I've found difficult are pertaining to collisions based off math, not colliders etc.

    Are other developers who use Unity in the same boat and if so how did you find a solution?
     
  2. Kurius

    Kurius

    Joined:
    Sep 29, 2013
    Posts:
    412
    2Dtoolkit allows you to set the world center as the bottom left of the screen. This would be easier for you because then you would just need to flip your Y values in order to port your code over.