From b8655e53cce41e891fd546d40da3cfbf09106195 Mon Sep 17 00:00:00 2001 From: hiker Date: Thu, 23 Mar 2017 19:07:34 +1100 Subject: [PATCH] Added support to modify the angular factor of a kart. The angular factor can be used to reduce the effect of an impulse for roll and pitch - keeping karts more parallel to the ground. --- data/kart_characteristics.xml | 4 ++++ src/karts/abstract_characteristic.cpp | 18 +++++++++++++++++- src/karts/abstract_characteristic.hpp | 2 ++ src/karts/kart.cpp | 4 ++++ src/karts/kart_properties.cpp | 6 ++++++ src/karts/kart_properties.hpp | 1 + src/karts/xml_characteristic.cpp | 2 ++ tools/create_kart_properties.py | 2 +- 8 files changed, 37 insertions(+), 2 deletions(-) diff --git a/data/kart_characteristics.xml b/data/kart_characteristics.xml index f0a56a9ba..320fce54b 100644 --- a/data/kart_characteristics.xml +++ b/data/kart_characteristics.xml @@ -45,6 +45,9 @@ 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). + angular-factor: Factor to change angular impulses. X and Z rotations + are damped to avoid that karts in a collision are too easily pushed + into a roll or pitch, which makes them topple over smooth-flying-impulse: apply a torque impulse to flying kart to keep them parallel to the ground. -->