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

This commit is contained in:
Juan Linietsky 2018-11-08 15:21:28 -03:00
parent 43e3582058
commit d403b4086c
1 changed files with 1 additions and 2 deletions

View File

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