Hi everyone. I'm new on this forum. I'm trying to syncrhonize Box2d with HAAF's engine, but I'm having problems.
- At first, I noticed that the Y coordenates decrease as you go down, totally different from HAAF.
So I inverted HAAF coordenates.
- Then I do a box 128x128 (with SetAsBox(64,64) ), it works finely. I first put the sprite with Body->GetPosition() then I rotate it with my own mathemathic formula, and it works xD.
- Next I do a ball. I use a b2CircleDef with 30 radius but here I start having weird problems:
- I did a ground, I put it on 0,0.
- I did a box of 128x128 on ground.
- I put a breakpoint on Draw thingy, I notice that GetPosition() returns y = 128.541, that's good because the height of the box is that.
- Then I do that circle of 30 radius.
- Placed on the same ground.
- With the same breakpoint, I see GetPosition() returning y = 95.0564.
¿Is that normal? I thought it should return 60, or even 30 but not 95... Any idea?
- At first, I noticed that the Y coordenates decrease as you go down, totally different from HAAF.
So I inverted HAAF coordenates.
- Then I do a box 128x128 (with SetAsBox(64,64) ), it works finely. I first put the sprite with Body->GetPosition() then I rotate it with my own mathemathic formula, and it works xD.
- Next I do a ball. I use a b2CircleDef with 30 radius but here I start having weird problems:
- I did a ground, I put it on 0,0.
- I did a box of 128x128 on ground.
- I put a breakpoint on Draw thingy, I notice that GetPosition() returns y = 128.541, that's good because the height of the box is that.
- Then I do that circle of 30 radius.
- Placed on the same ground.
- With the same breakpoint, I see GetPosition() returning y = 95.0564.
¿Is that normal? I thought it should return 60, or even 30 but not 95... Any idea?