vrfileman

view 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 source
1 #ifndef USER_H_
2 #define USER_H_
4 #include <vmath/vmath.h>
6 class User {
7 public:
8 Vector3 pos;
9 float hangle, vangle;
11 User();
13 void move(float dfwd, float dright, float dup = 0.0f);
14 void rotate(float dhoriz, float dvert);
16 void calc_matrix(Matrix4x4 *res) const;
17 void calc_inv_matrix(Matrix4x4 *res) const;
18 };
20 #endif // USER_H_