moveTo

fun Camera.moveTo(target: Vector2, x: Float = 0.0f, y: Float = 0.0f)

Immediately moves Camera to the selected target coordinates. Not suitable for all cases, as it may cause a very rough motion when used every frame. x and y are optional offsets in world units that will modify camera position.

Note that Camera.update should be called in order to update to the new position.