2 Commits

Author SHA1 Message Date
223feca13a Update raylib_api.* by CI 2025-09-01 05:56:44 +00:00
7d07d21ee5 Update Camera3D.fovy description in raylib.h (#5164)
Previously stated it was the near plane width in orthographic, in actuality it's the height. The wording has been fixed, with added clarity that it's in world units so no conversion is needed.
2025-09-01 07:56:31 +02:00
5 changed files with 5 additions and 5 deletions

View File

@ -327,7 +327,7 @@ typedef struct Camera3D {
Vector3 position; // Camera position
Vector3 target; // Camera target it looks-at
Vector3 up; // Camera up vector (rotation over its axis)
float fovy; // Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic
float fovy; // Camera field-of-view aperture in Y (degrees) in perspective, used as near plane height in world units in orthographic
int projection; // Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC
} Camera3D;

View File

@ -753,7 +753,7 @@
{
"type": "float",
"name": "fovy",
"description": "Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic"
"description": "Camera field-of-view aperture in Y (degrees) in perspective, used as near plane height in world units in orthographic"
},
{
"type": "int",

View File

@ -753,7 +753,7 @@ return {
{
type = "float",
name = "fovy",
description = "Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic"
description = "Camera field-of-view aperture in Y (degrees) in perspective, used as near plane height in world units in orthographic"
},
{
type = "int",

View File

@ -394,7 +394,7 @@ Struct 13: Camera3D (5 fields)
Field[1]: Vector3 position // Camera position
Field[2]: Vector3 target // Camera target it looks-at
Field[3]: Vector3 up // Camera up vector (rotation over its axis)
Field[4]: float fovy // Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic
Field[4]: float fovy // Camera field-of-view aperture in Y (degrees) in perspective, used as near plane height in world units in orthographic
Field[5]: int projection // Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC
Struct 14: Camera2D (4 fields)
Name: Camera2D

View File

@ -151,7 +151,7 @@
<Field type="Vector3" name="position" desc="Camera position" />
<Field type="Vector3" name="target" desc="Camera target it looks-at" />
<Field type="Vector3" name="up" desc="Camera up vector (rotation over its axis)" />
<Field type="float" name="fovy" desc="Camera field-of-view aperture in Y (degrees) in perspective, used as near plane width in orthographic" />
<Field type="float" name="fovy" desc="Camera field-of-view aperture in Y (degrees) in perspective, used as near plane height in world units in orthographic" />
<Field type="int" name="projection" desc="Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC" />
</Struct>
<Struct name="Camera2D" fieldCount="4" desc="Camera2D, defines position/orientation in 2d space">