Fixed gravity scale
This commit is contained in:
parent
aa3e740a53
commit
d250ade37b
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue