summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-11-08 15:21:28 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-11-08 15:22:28 -0300
commitd403b4086c514647bba7620591061b7de7dfaf4b (patch)
tree5abf4469a336c64576f55c91d29e5ca35353711a /servers
parent43e358205831fbcc5d6d7e8aade5131168d83651 (diff)
2D Rigid Body CCD should work again, fixes #6664
Diffstat (limited to 'servers')
-rw-r--r--servers/physics_2d/body_2d_sw.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/servers/physics_2d/body_2d_sw.cpp b/servers/physics_2d/body_2d_sw.cpp
index aa063d6c1e..52362386d2 100644
--- a/servers/physics_2d/body_2d_sw.cpp
+++ b/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;
}
}