Fixed gravity scale
This commit is contained in:
parent
aa3e740a53
commit
d250ade37b
@ -781,7 +781,8 @@ void SpaceBullet::check_body_collision() {
|
|||||||
void SpaceBullet::update_gravity() {
|
void SpaceBullet::update_gravity() {
|
||||||
btVector3 btGravity;
|
btVector3 btGravity;
|
||||||
G_TO_B(gravityDirection * gravityMagnitude, btGravity);
|
G_TO_B(gravityDirection * gravityMagnitude, btGravity);
|
||||||
dynamicsWorld->setGravity(btGravity);
|
//dynamicsWorld->setGravity(btGravity);
|
||||||
|
dynamicsWorld->setGravity(btVector3(0, 0, 0));
|
||||||
if (soft_body_world_info) {
|
if (soft_body_world_info) {
|
||||||
soft_body_world_info->m_gravity = btGravity;
|
soft_body_world_info->m_gravity = btGravity;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user