From 167169abe4df9bd67b5994b6a665abb437947815 Mon Sep 17 00:00:00 2001 From: epoch Date: Mon, 6 Apr 2020 04:41:47 -0500 Subject: added a lot of code while trying to fix the 3D projection to be less suck. ended up adding some code to have multiple "eyes" on a camera, instead of moving the camera around. --- src/common.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index a555cb1..9dddf3d 100644 --- a/src/common.h +++ b/src/common.h @@ -49,10 +49,10 @@ typedef struct { } c3_rot_t; typedef struct { - char *id; + char *id;//for the camera this is $USER, right? c3_rot_t r;//rotation c3_t p;//position - c3_t s;//??? shape??? I dunno. + c3_t s;//??? shape??? I dunno. really. wtf was this for? c3_t v;//velocity } c3_group_rot_t; @@ -113,7 +113,8 @@ struct hvr_global { int shapes; c3_group_rot_t *group_rot[SHAPES];//there can be less of these. struct hashtable ht_group; - c3_group_rot_t camera; + c3_group_rot_t eye[MAX_SIDES];//lol. 1000 eyes! array of group_rots for each eye. how to arrange eyes? + c3_group_rot_t camera;//should there be an array for this? camera has .s which is a shape struct. each point is the eye? real zoom; int derp; real split; -- cgit v1.2.3