From 79e2b7d0aee4d82d645653c14ec43f677a915c90 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 16 Jan 2012 21:52:47 +0000 Subject: [PATCH] More work on skidding (still disabled by default). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10686 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- data/stk_config.xml | 8 ++++--- src/karts/kart.cpp | 44 +++++++++++++++++++++-------------- src/karts/kart_properties.cpp | 4 +++- src/karts/kart_properties.hpp | 8 ++++++- src/physics/btKart.cpp | 9 ++++--- src/physics/btKart.hpp | 2 +- 6 files changed, 48 insertions(+), 27 deletions(-) diff --git a/data/stk_config.xml b/data/stk_config.xml index 91536eaf4..045087157 100644 --- a/data/stk_config.xml +++ b/data/stk_config.xml @@ -169,12 +169,14 @@ post-skid-rotate-factor: a factor to be used to determine how much the chassis of a kart should rotate to match the graphical view. A factor of 1 is identical, a smaller factor will rotate the kart - less (which might feel better). --> + less (which might feel better). + reduce-turn: A factor that's multiplied to the steering when skidding, + which is used to reduce the turn angle used to reduce the turn angle. --> + post-skid-rotate-factor="0.33" reduce-turn="0.6"/>