Create a new camera_3d object.
Arguments
- position
A numeric vector of length 3. Camera position.
- target
A numeric vector of length 3. Camera target it looks-at. Default:
c(0, 0, 0)
.- up
A numeric vector of length 3. Camera up vector (rotation over its axis). Default:
c(0, 1, 0)
.- fovy
A number. Camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic. Default:
70
.- projection
An integer. Camera projection: either
camera_projection$perspective
(0) orcamera_projection$orthographic
(1). Default:0
.
Note
This class has been auto-generated from the following Raylib struct definition:
typedef struct Camera3D {// Camera position
Vector3 position; // Camera target it looks-at
Vector3 target; // Camera up vector (rotation over its axis)
Vector3 up; // Camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic
float fovy; // Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC
int projection; } Camera3D;