Physics I guess

This commit is contained in:
2025-09-15 19:37:01 -05:00
parent 07ab2b4b02
commit f799690d3c
25 changed files with 315 additions and 13 deletions

View File

@@ -18,7 +18,8 @@ typedef enum {
typedef enum {
CAMERA_VIEW_TYPE_MATRIX,
CAMERA_VIEW_TYPE_LOOKAT
CAMERA_VIEW_TYPE_LOOKAT,
CAMERA_VIEW_TYPE_2D
} cameraviewtype_t;
typedef struct {
@@ -27,11 +28,17 @@ typedef struct {
union {
mat4 view;
struct {
float_t position[3];
float_t target[3];
float_t up[3];
} lookat;
struct {
float_t position[2];
float_t zoom;
} _2d;
};
union {