summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreaCatania <info@andreacatania.com>2017-11-19 17:52:45 +0100
committerAndreaCatania <info@andreacatania.com>2017-11-19 17:52:45 +0100
commitd250ade37b1e74dd11c870be279318ba01a8ba70 (patch)
treec41c6676947c7be028ff728e6de7c9e2b1fe7d9f
parentaa3e740a536765d413c4232853a87e0d12d10223 (diff)
Fixed gravity scale
-rw-r--r--modules/bullet/space_bullet.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/bullet/space_bullet.cpp b/modules/bullet/space_bullet.cpp
index 8024bea5b8..6e7289ec91 100644
--- a/modules/bullet/space_bullet.cpp
+++ b/modules/bullet/space_bullet.cpp
@@ -781,7 +781,8 @@ void SpaceBullet::check_body_collision() {
void SpaceBullet::update_gravity() {
btVector3 btGravity;
G_TO_B(gravityDirection * gravityMagnitude, btGravity);
- dynamicsWorld->setGravity(btGravity);
+ //dynamicsWorld->setGravity(btGravity);
+ dynamicsWorld->setGravity(btVector3(0, 0, 0));
if (soft_body_world_info) {
soft_body_world_info->m_gravity = btGravity;
}