Coordinate System
  • Czar05Czar05 December 2011
    How does the coordinate system work on the computer. I have read its pretty different than the Cartesian coordinate system. I have started development on my pong game. I am trying to code movement but I don't know were to begin.
  • kvakvskvakvs December 2011
    HGE has simple coordinate system where X goes right, and Y goes down from topleft corner of screen. Cartesian has Y up, that's the difference.

    Basically if you bypass standard HGE matrix setup (done automatically on start of rendering) and fiddle with projection matrix, you can define your own coordinate system, with any axes proportions and directions.
  • Czar05Czar05 December 2011
    How do programmers know where a particular unit is. For example the 10th unit on the X axis. Do programmers make educated guesses?
  • kvakvskvakvs December 2011
    That's 10 pixels from left side of screen, in HGE coords.
    Programmer knows where's 0,0 coord in his game.
    Some graphic engines make 0,0 in the center of screen. In HGE its top-left corner of screen. And 1 unit in HGE = 1 pixel.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

In this Discussion

Tagged

Who's Online (0)