Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Changing to cartesian coordinates
Print
Pages: [
1
]
Author
Topic: Changing to cartesian coordinates (Read 2829 times)
0 Members and 1 Guest are viewing this topic.
Richy19
Full Member
Posts: 190
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?
Logged
Tex Killer
Full Member
Posts: 242
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.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Changing to cartesian coordinates