Skip to content

Commit

Permalink
2D Rigid Body CCD should work again, fixes #6664
Browse files Browse the repository at this point in the history
  • Loading branch information
reduz committed Nov 8, 2018
1 parent 43e3582 commit d403b40
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions servers/physics_2d/body_2d_sw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit d403b40

Please sign in to comment.