소스 검색

2D Rigid Body CCD should work again, fixes #6664

Juan Linietsky 6 년 전
부모
커밋
d403b4086c
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      servers/physics_2d/body_2d_sw.cpp

+ 1 - 2
servers/physics_2d/body_2d_sw.cpp

@@ -511,8 +511,7 @@ void Body2DSW::integrate_forces(real_t p_step) {
 
 		if (continuous_cd_mode != Physics2DServer::CCD_MODE_DISABLED) {
 
-			motion = new_transform.get_origin() - get_transform().get_origin();
-			//linear_velocity*p_step;
+			motion = linear_velocity * p_step;
 			do_motion = true;
 		}
 	}