Guest User

Untitled

a guest
Jan 14th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. float fixParameterWidth = ((float) sprite.getTexture().getWidth() /
  2.                     (float) sprite.getRegionWidth());
  3. float fixedWidth = width * fixParameterWidth;
  4. float fixParameterHeigth = ((float) sprite.getTexture().getHeight() /                   (float)sprite.getRegionHeight());
  5. float fixedHeight = height * fixParameterHeigth;
  6. truckAtlas.createFixtures(body, pictureName, fixedWidth, fixedHeight,
  7. fixedWidth - (width / 2f) - offSetX, fixedHeight - (height / 2f) - offSetY, mater.material);
Add Comment
Please, Sign In to add comment