10 void Avatar::set_tracking_mode(unsigned int mode)
15 unsigned int Avatar::get_tracking_mode() const
20 void Avatar::set_position(const Vec3 &p)
25 const Vec3 &Avatar::get_position() const
30 void Avatar::set_body_rotation(float rot)
35 float Avatar::get_body_rotation() const
40 const Vec3 &Avatar::get_body_fwd() const
45 const Vec3 &Avatar::get_body_right() const
50 const Quat &Avatar::get_head_rotation() const
55 void Avatar::tracked_head_rotation(const Quat &q)
60 // TODO maybe transform from head-relative first
61 void Avatar::tracked_hand_position(int hand, const Vec3 &p)
66 // TODO maybe transform from head-relative first
67 void Avatar::tracked_hand_rotation(int hand, const Quat &q)
72 void Avatar::mouselook(float horiz, float vert)
76 if(head_alt > M_PI / 2.0) head_alt = M_PI / 2.0;
77 if(head_alt < -M_PI / 2.0) head_alt = -M_PI / 2.0;
80 Vec3 Avatar::calc_walk_dir(float fwd, float right) const
86 void Avatar::walk(float fwd, float right)
88 Vec3 wdir = calc_walk_dir(fwd, right);