Fixed gravity scale

This commit is contained in:
AndreaCatania 2017-11-19 17:52:45 +01:00
parent aa3e740a53
commit d250ade37b

View file

@ -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;
}