Browse Source

<fales> end of the week ;-)

Juan Linietsky 7 years ago
parent
commit
121cead38e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      servers/physics_2d/space_2d_sw.cpp

+ 1 - 1
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) {
 						if (col_obj->get_type() == CollisionObject2DSW::TYPE_BODY) {
 							const Body2DSW *b = static_cast<const Body2DSW *>(col_obj);
 							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
 								//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();
 								Vector2 lv = b->get_linear_velocity();
 								//compute displacement from linear velocity
 								//compute displacement from linear velocity