Don't assume number of physics ticks per second
This commit is contained in:
parent
6b4ebc2148
commit
6af07fac77
@ -22,6 +22,7 @@
|
|||||||
#include "LinearMath/btIDebugDraw.h"
|
#include "LinearMath/btIDebugDraw.h"
|
||||||
#include "BulletDynamics/ConstraintSolver/btContactConstraint.h"
|
#include "BulletDynamics/ConstraintSolver/btContactConstraint.h"
|
||||||
|
|
||||||
|
#include "config/stk_config.hpp"
|
||||||
#include "graphics/material.hpp"
|
#include "graphics/material.hpp"
|
||||||
#include "karts/kart.hpp"
|
#include "karts/kart.hpp"
|
||||||
#include "karts/kart_model.hpp"
|
#include "karts/kart_model.hpp"
|
||||||
@ -551,7 +552,7 @@ void btKart::updateVehicle( btScalar step )
|
|||||||
// of hovering: a kart gets cushioned on a down-sloping area, still
|
// of hovering: a kart gets cushioned on a down-sloping area, still
|
||||||
// moves forwards, gets cushioned again etc. --> kart is hovering
|
// moves forwards, gets cushioned again etc. --> kart is hovering
|
||||||
// and not controllable.
|
// and not controllable.
|
||||||
m_cushioning_disable_time = 120;
|
m_cushioning_disable_time = stk_config->time2Ticks(1);
|
||||||
|
|
||||||
needed_cushioning = true;
|
needed_cushioning = true;
|
||||||
btVector3 impulse = down * (-v_down.getY() + gravity*step)
|
btVector3 impulse = down * (-v_down.getY() + gravity*step)
|
||||||
|
Loading…
Reference in New Issue
Block a user