Author Topic: Box 2D vs DFSDK coordinates  (Read 1347 times)

Micboy

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +0/-2
    • View Profile
Box 2D vs DFSDK coordinates
« on: November 13, 2012, 02:26:20 pm »
Dear All,

I am having a bit of trouble programming my game. Currently, I am using Box2d for a more 'realistic' model of the world.

However, I am wondering whether when I initiate the world, is the origin automatically centred in the middle of the screen (http://www.box2d.org/forum/viewtopic.php?f=3&t=8198), or can I set it to be in the top left hand corner?

Thank you very much for taking your time to read this post.

Micboy

DeadSn0wMan

  • Guest
Re: Box 2D vs DFSDK coordinates
« Reply #1 on: November 14, 2012, 07:41:36 am »
I also have some troubles with the Box2D coordinates but have you taken a look in the Box2D API? Im sure there must be a way to change the orgin. (I didn't even know that the default orgin for the Box2D was in the center so thanks for that ;D)

ciuffolo

  • Guest
Re: Box 2D vs DFSDK coordinates
« Reply #2 on: January 29, 2013, 02:30:35 pm »
I think you can edit only the body xy axes, but I'm not very informed.