From da94182578786c08f4463bac99e7b5ba08c064b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20F=C3=BCndgens?= Date: Fri, 6 Mar 2015 17:55:01 +0100 Subject: [PATCH] Made death animation quicker. --- physics.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/physics.cc b/physics.cc index 35035d6..ae0c2c8 100644 --- a/physics.cc +++ b/physics.cc @@ -79,7 +79,7 @@ void Physics::takeUpdateStep(float timeDiff) if(sinking) { btVector3 currentPos = playerBall->getCenterOfMassPosition(); - currentPos -= btVector3(0,0.005f,0); + currentPos -= btVector3(0,0.35f*timeDiff,0); playerBall->setCenterOfMassTransform(btTransform(playerBall->getOrientation(),currentPos)); if(playerBall->getCenterOfMassPosition().y() < resetHight - 1.5f) { @@ -95,7 +95,7 @@ void Physics::takeUpdateStep(float timeDiff) else { btVector3 currentPos = playerBall->getCenterOfMassPosition(); - currentPos += btVector3(0,0.009f,0); + currentPos += btVector3(0,0.9f*timeDiff,0); playerBall->setCenterOfMassTransform(btTransform(playerBall->getOrientation(),currentPos)); if(playerBall->getCenterOfMassPosition().y() >= startPosition.y() + 1)