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 {
Vector2 offset; // Camera offset (displacement from target)
Vector2 target; // Camera target (rotation and zoom origin)
float rotation; // Camera rotation in degrees
float zoom; // Camera zoom (scaling), should be 1.0f by default
} Camera2D;