Change power of bouncy edges in soccer field as temporary solution for #1367.

Ideally power of bounce should depend on soccer ball weight.
This commit is contained in:
Deve
2014-06-30 18:18:41 +02:00
parent 61aaccca33
commit ff6af6b072

View File

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