Hi,
I thought that too, as I guess in retina mode 1 meter is 64 pixels where as in sd mode 1 meter is 32 pixels.
Just thought by doing this it should work, but doesn't:
Code:
_playerBody->ApplyLinearImpulse(b2Vec2(-0.2 / CC_CONTENT_SCALE_FACTOR(),0),_playerBody->GetWorldCenter());
Where when in retina mode CC_CONTENT_SCALE_FACTOR( ) would return 2 and 1 in SD mode.
If I do this in HD mode:
Code:
_playerBody->ApplyLinearImpulse(b2Vec2(0.0f,2.1),_playerBody->GetWorldCenter());
then to get same distance in SD mode I have to do this:
Code:
_playerBody->ApplyLinearImpulse(b2Vec2(0.0f,6.0),_playerBody->GetWorldCenter());
Why 2.1 in HD and 6.0 in SD - doesn't make any sense?
Regards,
Steve