Try to fix too bouncy bowling ball
This commit is contained in:
parent
c37f75bf90
commit
2415340cae
@ -61,7 +61,7 @@ Bowling::Bowling(AbstractKart *kart)
|
||||
const Vec3& normal = kart->getNormal();
|
||||
createPhysics(y_offset, btVector3(0.0f, 0.0f, m_speed*2),
|
||||
new btSphereShape(0.5f*m_extend.getY()),
|
||||
0.8f /*restitution*/,
|
||||
0.4f /*restitution*/,
|
||||
-70.0f*normal /*gravity*/,
|
||||
true /*rotates*/);
|
||||
// Even if the ball is fired backwards, m_speed must be positive,
|
||||
|
@ -1481,7 +1481,7 @@ void Kart::updateTerrainInfo()
|
||||
{
|
||||
// After the physics step was done, the position of the wheels (as stored
|
||||
// in wheelInfo) is actually outdated, since the chassis was moved
|
||||
// according to the force acting from the wheels. So the cnter of the
|
||||
// according to the force acting from the wheels. So the center of the
|
||||
// chassis is not at the center of the wheels anymore, it is somewhat
|
||||
// moved forward (depending on speed and fps). In very extreme cases
|
||||
// (see bug 2246) the center of the chassis can actually be ahead of the
|
||||
|
Loading…
Reference in New Issue
Block a user