#include <CarCamera.h>
Inheritance diagram for Engine::CarCamera:
Public Member Functions | |
CarCamera (GameObjects::Car &car, Physics::World &world) | |
virtual | ~CarCamera () |
void | full_transform () |
void | rotation_transform () |
virtual void | posttick () |
evaluate forces, state, etc. | |
virtual void | set_forces () |
use bullet's applyForces function on some objects | |
void | update_occlusion_tester (Track::OcclusionTester &occlusion_tester, btScalar aspect) const |
Set the view frustrum in an occlusion_tester. | |
const btVector3 & | get_location () const |
Get the location of the camera in world space. | |
const btVector3 & | get_velocity () const |
Get the movement of the camera over the last physics tick. | |
Private Attributes | |
GameObjects::Car & | car |
Physics::World & | world |
btVector3 | location |
btVector3 | up |
btVector3 | centre |
btVector3 | m_velocity |
SoundListener | m_listener |
Definition at line 22 of file CarCamera.h.
Engine::CarCamera::CarCamera | ( | GameObjects::Car & | car, | |
Physics::World & | world | |||
) |
Definition at line 58 of file CarCamera.cpp.
Engine::CarCamera::~CarCamera | ( | ) | [virtual] |
Definition at line 77 of file CarCamera.cpp.
void Engine::CarCamera::full_transform | ( | ) |
Definition at line 82 of file CarCamera.cpp.
const btVector3 & Engine::CarCamera::get_location | ( | ) | const |
const btVector3 & Engine::CarCamera::get_velocity | ( | ) | const |
Get the movement of the camera over the last physics tick.
Definition at line 163 of file CarCamera.cpp.
void Engine::CarCamera::posttick | ( | ) | [virtual] |
evaluate forces, state, etc.
Implements Engine::Physics::TickObserver.
Definition at line 96 of file CarCamera.cpp.
void Engine::CarCamera::rotation_transform | ( | ) |
Definition at line 89 of file CarCamera.cpp.
virtual void Engine::CarCamera::set_forces | ( | ) | [inline, virtual] |
use bullet's applyForces function on some objects
Reimplemented from Engine::Physics::TickObserver.
Definition at line 31 of file CarCamera.h.
void Engine::CarCamera::update_occlusion_tester | ( | Track::OcclusionTester & | occlusion_tester, | |
btScalar | aspect | |||
) | const |
Set the view frustrum in an occlusion_tester.
Sets the occlusion_tester to occlude objects behind the camera, or off any side of the display.
occlusion_tester | the occlusion_tester to give the view frustrum too. | |
aspect | the ratio between width and height of the display region. |
Definition at line 121 of file CarCamera.cpp.
GameObjects::Car& Engine::CarCamera::car [private] |
Definition at line 46 of file CarCamera.h.
btVector3 Engine::CarCamera::centre [private] |
Definition at line 50 of file CarCamera.h.
btVector3 Engine::CarCamera::location [private] |
Definition at line 48 of file CarCamera.h.
SoundListener Engine::CarCamera::m_listener [private] |
Definition at line 52 of file CarCamera.h.
btVector3 Engine::CarCamera::m_velocity [private] |
Definition at line 51 of file CarCamera.h.
btVector3 Engine::CarCamera::up [private] |
Definition at line 49 of file CarCamera.h.
Physics::World& Engine::CarCamera::world [private] |
Definition at line 47 of file CarCamera.h.
Generated at Mon Sep 6 00:41:17 2010 by Doxygen version 1.4.7 for Racer version svn335.