fixed mirror rendering for goatvr backends which don't use an fbo
[laserbrain_demo] / src / avatar.h
1 #ifndef AVATAR_H_
2 #define AVATAR_H_
3
4 // TODO incomplete
5
6 #include <gmath/gmath.h>
7
8 /* when head-tracking is available, head_tilt is ignored, and the
9  * body_rot (controlled by mouse/gamepad) is independent of head_rot.
10  *
11  * without head-tracking, head_rot is derived from body_rot and head_tilt
12  */
13 class Avatar {
14 public:
15         Vec3 pos;
16         float body_rot;
17         Quat head_rot;          // used when head-tracking
18         float head_alt; // used for mouselook
19
20         Avatar();
21 };
22
23 #endif  // AVATAR_H_