From a65959da4281670f8f2503322b4cb5fc8d9e380d Mon Sep 17 00:00:00 2001 From: hiker Date: Tue, 8 Jul 2014 16:52:09 +1000 Subject: [PATCH] Replaced upright constraint with simpler code that keeps the kart in mid air aligned to the gravity. This will also enable jumps in section where the gravity is not in the default direction. --- data/stk_config.xml | 3 - sources.cmake | 2 +- src/karts/abstract_kart.hpp | 4 - src/karts/kart.cpp | 59 +++++----- src/karts/kart.hpp | 8 +- src/karts/kart_properties.cpp | 13 +- src/karts/kart_properties.hpp | 12 -- src/physics/btUprightConstraint.cpp | 176 ---------------------------- src/physics/btUprightConstraint.hpp | 122 ------------------- src/physics/physics.cpp | 7 +- 10 files changed, 36 insertions(+), 370 deletions(-) delete mode 100644 src/physics/btUprightConstraint.cpp delete mode 100644 src/physics/btUprightConstraint.hpp diff --git a/data/stk_config.xml b/data/stk_config.xml index 84d3c09c0..57e012e6c 100644 --- a/data/stk_config.xml +++ b/data/stk_config.xml @@ -380,9 +380,6 @@ downward-impulse-factor="0" track-connection-accel="2"/> - - -