From 03160e3b7b3bea8de0dcab5d2b62b44211a4cadd Mon Sep 17 00:00:00 2001 From: hiker Date: Wed, 6 Aug 2014 07:52:02 +1000 Subject: [PATCH] Increase the brake force the longer the brake key is pressed (before it took ~1.6 seconds for a kart to stop, now 0.5; while hardly any change to short brakes to slow down the kart a bit only). Also made the impulse to keep karts parallel to the ground configurable. --- data/stk_config.xml | 16 ++++++++++++---- src/karts/kart.cpp | 11 ++++++++--- src/karts/kart.hpp | 6 +++++- src/karts/kart_properties.cpp | 9 +++++++-- src/karts/kart_properties.hpp | 22 ++++++++++++++++++++-- src/physics/btKart.cpp | 4 ++-- 6 files changed, 54 insertions(+), 14 deletions(-) diff --git a/data/stk_config.xml b/data/stk_config.xml index c3ea07ea2..ec57e3e43 100644 --- a/data/stk_config.xml +++ b/data/stk_config.xml @@ -373,12 +373,15 @@ track-connection-accel: An artificial force that pulls a wheel to the ground if its off ground. Reduces the affect if a kart loses contact with the ground (i.e. it then can't steer or accelerate - anymore). --> + anymore). + smooth-flying-impulse: apply a torque impulse to flying kart to keep + them parallel to the ground.--> + track-connection-accel="2" + smooth-flying-impulse="10"/> + brake-factor: Value used when braking. + brake-time-increase: The brake force is multiplied by + (1+brake_time*brake_time_increase - i.e. the longer the brake was + pressed, the harder the kart will brake. + max-speed-reverse-ratio is the percentage of max speed for reverse gear. + -->