diff options
author | Juan Linietsky <juan@godotengine.org> | 2018-11-03 13:30:08 -0300 |
---|---|---|
committer | Juan Linietsky <juan@godotengine.org> | 2018-11-03 13:30:08 -0300 |
commit | 121cead38e5ea84ec22139df02eee56d822290b7 (patch) | |
tree | 2b6848aab6511fae207892f74c6f5378c76781cd /servers/physics_2d | |
parent | 3a62f29eef174872c3d4d18e97a8ae790480ee65 (diff) |
<fales> end of the week ;-)
Diffstat (limited to 'servers/physics_2d')
-rw-r--r-- | servers/physics_2d/space_2d_sw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_2d/space_2d_sw.cpp b/servers/physics_2d/space_2d_sw.cpp index 0abbf6aa45..ab9916095b 100644 --- a/servers/physics_2d/space_2d_sw.cpp +++ b/servers/physics_2d/space_2d_sw.cpp @@ -740,7 +740,7 @@ bool Space2DSW::test_body_motion(Body2DSW *p_body, const Transform2D &p_from, co if (col_obj->get_type() == CollisionObject2DSW::TYPE_BODY) { const Body2DSW *b = static_cast<const Body2DSW *>(col_obj); - if (b->get_mode() == Physics2DServer::BODY_MODE_KINEMATIC || b->get_mode() == Physics2DServer::BODY_MODE_KINEMATIC) { + if (b->get_mode() == Physics2DServer::BODY_MODE_KINEMATIC || b->get_mode() == Physics2DServer::BODY_MODE_RIGID) { //fix for moving platforms (kinematic and dynamic), margin is increased by how much it moved in the given direction Vector2 lv = b->get_linear_velocity(); //compute displacement from linear velocity |