Hello,
I have a Cocos2d Sprite and a Box2d Body. I am using a PTM_Ratio of 32.
On a standard iPhone device (480 x 680) my sprite is at position 240 x 300 and the b2body at 7.5 x 9.375. The body and sprite match up perfectly. The sprite and box2d body also appear in the correct location.
On a retinar display iPhone device (960 x 320) my sprite is at position 480 x 600 and the b2body at 15 x 18.75. The b2Body appears in the correct place but the sprite is nowhere near, it is around 200 pixels away.
I have tried everything from changing the PTM ratio to 16 and 64 (as it's double the size in retinar) to removing the sprite position. None of these work.
Update: I have just noticed the bodies appear weird such as overlapping in the higher resolution. I assume it has something to do with the PTM.
What on earth am I doing wrong?
I have a Cocos2d Sprite and a Box2d Body. I am using a PTM_Ratio of 32.
On a standard iPhone device (480 x 680) my sprite is at position 240 x 300 and the b2body at 7.5 x 9.375. The body and sprite match up perfectly. The sprite and box2d body also appear in the correct location.
On a retinar display iPhone device (960 x 320) my sprite is at position 480 x 600 and the b2body at 15 x 18.75. The b2Body appears in the correct place but the sprite is nowhere near, it is around 200 pixels away.
I have tried everything from changing the PTM ratio to 16 and 64 (as it's double the size in retinar) to removing the sprite position. None of these work.
Update: I have just noticed the bodies appear weird such as overlapping in the higher resolution. I assume it has something to do with the PTM.
What on earth am I doing wrong?