Strength of bouncy edges should depend on soccer ball mass.

This commit is contained in:
Deve 2014-08-08 23:06:25 +02:00
parent cdb760ae51
commit 99ce91dc46

View File

@ -574,7 +574,7 @@ void PhysicalObject::hit(const Material *m, const Vec3 &normal)
if(isSoccerBall() && m != NULL &&
m->getCollisionReaction() == Material::PUSH_SOCCER_BALL)
{
m_body->applyCentralImpulse(normal * 100.0f);
m_body->applyCentralImpulse(normal * m_mass * 5.0f);
}
} // hit