Improve 'push back on collision' effect
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10624 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -1479,7 +1479,7 @@ void Kart::crashed(Kart *k, const Material *m)
|
||||
if (m_bounce_back_time <= 0.0f)
|
||||
{
|
||||
btVector3 push = m_vehicle->getRigidBody()->getLinearVelocity().normalized();
|
||||
push[1] = -0.1f;
|
||||
push[1] = 0.1f;
|
||||
m_vehicle->getRigidBody()->applyCentralImpulse( -4000.0f*push );
|
||||
//m_vehicle->getRigidBody()->setLinearVelocity( -m_vehicle->getRigidBody()->getLinearVelocity() );
|
||||
m_bounce_back_time = 2.0f;
|
||||
|
||||
Reference in New Issue
Block a user