updatePixelSize

fun updatePixelSize(context: Context)

Uses the current projection and transformation matrices of Batch to calculate the size of the screen pixel along the x-axis in world units, and calls sets the pixelSize with that value.

This should be called if Batch.projectionMatrix or Batch.transformMatrixare changed.