From 964d132364b050e3260a689cca1162d04fa478b8 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Tue, 6 Dec 2011 05:54:16 +0000 Subject: [PATCH] Added code for skidding (currently disabled, so no visible change). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10361 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- data/stk_config.xml | 8 +++++-- src/karts/kart.cpp | 9 ++++++++ src/karts/kart_properties.cpp | 17 +++++++++----- src/karts/kart_properties.hpp | 13 +++++++++++ src/physics/btKart.cpp | 42 ++++++++++++++++++++++++++--------- src/physics/btKart.hpp | 18 +++++++++++++++ 6 files changed, 89 insertions(+), 18 deletions(-) diff --git a/data/stk_config.xml b/data/stk_config.xml index b3f7c0b57..4b486b797 100644 --- a/data/stk_config.xml +++ b/data/stk_config.xml @@ -160,9 +160,13 @@ decrease: multiplicative decrease of skidding factor in each frame. max: maximum skidding factor = maximum increase of steering angle. time-till-max: Time till maximum skidding is reached. - visual: Additional graphical rotation of kart. --> + visual: Additional graphical rotation of kart. + angular-velocity: Angular velocity to be used for the kart when skidding. + bonus-time: How long a kart needs to skid in order to get a bonus. --> + + visual="0.0" + angular-velocity="0" bonus-time="5"/>