Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float fixParameterWidth = ((float) sprite.getTexture().getWidth() /
- (float) sprite.getRegionWidth());
- float fixedWidth = width * fixParameterWidth;
- float fixParameterHeigth = ((float) sprite.getTexture().getHeight() / (float)sprite.getRegionHeight());
- float fixedHeight = height * fixParameterHeigth;
- truckAtlas.createFixtures(body, pictureName, fixedWidth, fixedHeight,
- fixedWidth - (width / 2f) - offSetX, fixedHeight - (height / 2f) - offSetY, mater.material);
Add Comment
Please, Sign In to add comment