2 #include "headtrackingcamera.h"
3 #include "motioncontroller.h"
4 #include "stereoview.h"
11 MotionController::MotionController():
15 MotionController::~MotionController()
20 void MotionController::attach_to_view(StereoView &v)
24 view->add_controller(*this);
27 void MotionController::detach_from_view()
30 view->remove_controller(*this);
34 void MotionController::update_from_matrix(const GL::Matrix &m)
38 if(const HeadTrackingCamera *head_camera = view->get_head_camera())
39 matrix = head_camera->get_base_matrix()*matrix;