Camera2D

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

Represents a 2D Camera in raylib.

Constructors

Link copied to clipboard
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.

Properties

Link copied to clipboard
var delta: ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>

Displacement from the target position

Link copied to clipboard
var dx: Float

The X coordinate of the displacement from the target.

Link copied to clipboard
var dy: Float

The Y coordinate of the displacement from the target.

Link copied to clipboard

Camera rotation in degrees

Link copied to clipboard
var target: ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>

The camera's target and the origin of the rotation and zoom

Link copied to clipboard

The X coordinate of the camera's target.

Link copied to clipboard

The Y coordinate of the camera's target.

Link copied to clipboard
var zoom: Float

Camera zoom scale