clearScreen(0, 0, 0); if(DEBUG_PHYSICS) { debugRenderer.render(world, camera.combined); } batch.begin(); batch.draw(tennisBallTexture, tennisBallBody.getPosition().x - tennisBallRadius, tennisBallBody.getPosition().y - tennisBallRadius, tennisBallRadius, // originX tennisBallRadius, // originY tennisBallRadius * 2, // width tennisBallRadius * 2, // height 1.0f, // scaleX 1.0f, // scaleY tennisBallBody.getTransform().getRotation() * MathUtils.radiansToDegrees, 0, // Start drawing from x = 0 0, // Start drawing from y = 0 tennisBallTexture.getWidth(), // End drawing x tennisBallTexture.getHeight(), // End drawing y false, // flipX false); // flipY batch.end(); doPhysicsStep(Gdx.graphics.getDeltaTime()); }