From 2415340caebf0c3463f88f48d0e2fb752dd22b45 Mon Sep 17 00:00:00 2001 From: Benau Date: Sun, 11 Sep 2016 10:07:43 +0800 Subject: [PATCH] Try to fix too bouncy bowling ball --- src/items/bowling.cpp | 2 +- src/karts/kart.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/items/bowling.cpp b/src/items/bowling.cpp index 9ad5caf26..e24a2ceb5 100644 --- a/src/items/bowling.cpp +++ b/src/items/bowling.cpp @@ -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, diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index 7f1433c38..5b81071ae 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -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