Merge branch 'master' of goat:git/laserbrain_demo
[laserbrain_demo] / src / avatar.h
1 #ifndef AVATAR_H_
2 #define AVATAR_H_
3
4 #include <gmath/gmath.h>
5
6 /* when head-tracking is available, head_tilt is ignored, and the
7  * body_rot (controlled by mouse/gamepad) is independent of head_rot.
8  *
9  * without head-tracking, head_rot is derived from body_rot and head_tilt
10  */
11 class Avatar {
12 public:
13         Vec3 pos;
14         float body_rot;
15         Quat head_rot;          // used when head-tracking
16         float head_tilt;        // used for mouselook
17
18         Avatar();
19         ~Avatar();
20
21         void draw() const;
22 };
23
24 #endif  // AVATAR_H_