Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. 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,347
    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.