vrfileman
diff src/user.h @ 5:d487181ee1d9
fixed movement
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 03 Feb 2015 03:35:14 +0200 |
parents | 2cbf85690e03 |
children |
line diff
1.1 --- a/src/user.h Mon Feb 02 21:11:23 2015 +0200 1.2 +++ b/src/user.h Tue Feb 03 03:35:14 2015 +0200 1.3 @@ -3,9 +3,12 @@ 1.4 1.5 #include <vmath/vmath.h> 1.6 1.7 -struct PosRot { 1.8 +class User { 1.9 +public: 1.10 Vector3 pos; 1.11 - Quaternion rot; 1.12 + float hangle, vangle; 1.13 + 1.14 + User(); 1.15 1.16 void move(float dfwd, float dright, float dup = 0.0f); 1.17 void rotate(float dhoriz, float dvert); 1.18 @@ -14,9 +17,4 @@ 1.19 void calc_inv_matrix(Matrix4x4 *res) const; 1.20 }; 1.21 1.22 -class User { 1.23 -public: 1.24 - PosRot posrot; 1.25 -}; 1.26 - 1.27 #endif // USER_H_