pan

fun pan(displacement: Vector2)(source)

Applies a panning transformation to the camera view. The method modifies the current view by translating it based on the provided displacement vector, effectively shifting the camera's view in the scene.

Parameters

displacement

the vector by which the camera view is translated.