소스 검색

Fixed gravity scale

AndreaCatania 7 년 전
부모
커밋
d250ade37b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      modules/bullet/space_bullet.cpp

+ 2 - 1
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;
 	}