00001 00005 /* Copyright © 2009, 2010 James Legg. 00006 This program is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 (at your option) any later version. 00010 */ 00011 #ifndef CARCAMERA_H_ 00012 #define CARCAMERA_H_ 00013 00014 #include "GameObjects/Car.h" 00015 #include "Physics/TickObserver.h" 00016 #include "Physics/World.h" 00017 #include "Audio.h" 00018 00019 namespace Engine 00020 { 00021 00022 class CarCamera : public Physics::TickObserver 00023 { 00024 public: 00025 CarCamera(GameObjects::Car & car, Physics::World & world); 00026 virtual ~CarCamera(); 00027 void full_transform(); 00028 void rotation_transform(); 00029 00030 virtual void posttick() ; 00031 virtual void set_forces() {}; 00032 00039 void update_occlusion_tester(Track::OcclusionTester & occlusion_tester, btScalar aspect) const; 00040 00042 const btVector3 & get_location() const; 00044 const btVector3 & get_velocity() const; 00045 private: 00046 GameObjects::Car & car; 00047 Physics::World & world; 00048 btVector3 location; 00049 btVector3 up; 00050 btVector3 centre; 00051 btVector3 m_velocity; 00052 SoundListener m_listener; 00053 }; 00054 00055 } 00056 00057 #endif /*CARCAMERA_H_*/
Generated at Mon Sep 6 00:41:12 2010 by Doxygen version 1.4.7 for Racer version svn335.