Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Changing to cartesian coordinates  (Read 1462 times)

0 Members and 1 Guest are viewing this topic.

Richy19

  • Full Member
  • ***
  • Posts: 190
    • View Profile
Changing to cartesian coordinates
« on: March 09, 2012, 01:43:15 am »
Hi, im trying to use Box2D with SFML however box2D uses cartesian coordinates but SFML uses inverted Y.
Is there any way to change the SFML coordinate system easily? say with the view class or something?

Tex Killer

  • Full Member
  • ***
  • Posts: 242
    • View Profile
Changing to cartesian coordinates
« Reply #1 on: March 09, 2012, 02:38:38 am »
Just always multiply your Y coordinates by -1. If you make a flipped view I would expect the graphics to be upside down.

 

anything