From 4976d9d60c8310c360ac62c19e122226c28484c5 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 27 Sep 2010 12:15:19 +0000 Subject: [PATCH] Made the backwards facing camera using a higher angle to make it more useful (actual angle can be determined in stk_config.xml). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6155 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- data/stk_config.xml | 11 +++++++++-- src/graphics/camera.cpp | 6 +++--- src/karts/kart_properties.cpp | 12 ++++++++---- src/karts/kart_properties.hpp | 13 ++++++++++--- 4 files changed, 30 insertions(+), 12 deletions(-) diff --git a/data/stk_config.xml b/data/stk_config.xml index 192cda2eb..add59eda7 100644 --- a/data/stk_config.xml +++ b/data/stk_config.xml @@ -117,8 +117,15 @@ of the chassis. -->
- - + + gear 1, @@ -443,7 +447,10 @@ public: float getCameraDistance () const {return m_camera_distance; } /** Returns the angle the camera has relative to the pitch of the kart. */ - float getCameraUpAngle () const {return m_camera_up_angle; } + float getCameraForwardUpAngle () const {return m_camera_forward_up_angle; } + + /** Returns the angle the camera has relative to the pitch of the kart. */ + float getCameraBackwardUpAngle () const {return m_camera_backward_up_angle; } /** Returns AI steering variation value. */ float getAISteeringVariation () const {return m_ai_steering_variation; }