So I have implemented the Box2d into the dark GDK and have just ran into one problem.
Basically it has to do with this function from Box2d
playerShapeDef.SetAsBox((dbSpriteWidth(2)/b2PixelRatio)/2.0f, (dbSpriteHeight(2)/b2PixelRatio)/2.0f);
For some reason the dbSpriteWidth and Height doesn't work inside of this function. When I hard code the numbers to fit the parameters of my sprite the collision works fine. Like So:
playerShapeDef.SetAsBox((90/b2PixelRatio)/2.0f, (90/b2PixelRatio)/2.0f);
This code works but I need it to be able to work with the dbSpriteWidth and Height function. Anyone know why it would not work with dbSpriteWidth? Or does dbSpriteWidth not hold the actually value of the sprites width? and if that's the case what would be the best way to go about getting a sprites width and height without hard coding it?