vrfileman

view src/user.h @ 3:2cbf85690e03

more stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 01 Feb 2015 20:56:16 +0200
parents 282da6123fd4
children d487181ee1d9
line source
1 #ifndef USER_H_
2 #define USER_H_
4 #include <vmath/vmath.h>
6 struct PosRot {
7 Vector3 pos;
8 Quaternion rot;
10 void move(float dfwd, float dright, float dup = 0.0f);
11 void rotate(float dhoriz, float dvert);
13 void calc_matrix(Matrix4x4 *res) const;
14 void calc_inv_matrix(Matrix4x4 *res) const;
15 };
17 class User {
18 public:
19 PosRot posrot;
20 };
22 #endif // USER_H_