Need help w/ World vs Local coordinates
Posted: Sat Dec 13, 2008 3:55 pm
Could someone give me a quick tutorial on using world vs local coordinates?
Never done it before so just curious about where to even start. Once I can get going I can play with it and figure it out.
If I have a world that is set to X=2000, Y=2000. How does local coordinates relate to that?
If I set a body to 300,200 on the screen, is that world coordinates? Or local coordinates and then how do I relate that to world coordinates? It seems that a 3rd element needs to be there somewhere in what piece of the world is currently on screen, ie, a camera. Am I completely off base?
Never done it before so just curious about where to even start. Once I can get going I can play with it and figure it out.
If I have a world that is set to X=2000, Y=2000. How does local coordinates relate to that?
If I set a body to 300,200 on the screen, is that world coordinates? Or local coordinates and then how do I relate that to world coordinates? It seems that a 3rd element needs to be there somewhere in what piece of the world is currently on screen, ie, a camera. Am I completely off base?