Create a new camera_2d object.
Arguments
- offset
A numeric vector of length 2. Camera offset (displacement from target).
- target
A numeric vector of length 2. Camera target (rotation and zoom origin).
- rotation
A number. Camera rotation in degrees.
- zoom
A number. Camera zoom (scaling). Default:
1
.
Note
This class has been auto-generated from the following Raylib struct definition:
typedef struct Camera2D {// Camera offset (displacement from target)
Vector2 offset; // Camera target (rotation and zoom origin)
Vector2 target; // Camera rotation in degrees
float rotation; // Camera zoom (scaling), should be 1.0f by default
float zoom; } Camera2D;