Camera2D

constructor(delta: ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float> = 0F to 0F, target: ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float> = 0F to 0F, rotation: Float = 0.0f, zoom: Float = 1.0f)


constructor(dx: Float = 0.0f, dy: Float = 0.0f, targetX: Float = 0.0f, targetY: Float = 0.0f, rotation: Float = 0.0f, zoom: Float = 1.0f)

Creates a new 2D Camera.

Parameters

dx

The X coordinate of the displacement from the target

dy

The Y coordinate of the displacement from the target

targetX

The X coordinate of the camera's target

targetY

The Y coordinate of the camera's target

rotation

Camera rotation in radians

zoom

Camera zoom scale