summaryrefslogtreecommitdiff
path: root/main/tests/test_physics.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-28 09:15:38 +0100
committerGitHub <noreply@github.com>2020-02-28 09:15:38 +0100
commit4f64f3401a5f3652fdd2b01483011dbe0106352b (patch)
tree96786e4a897cbfab3f73a81b14868a42f4ef5ba5 /main/tests/test_physics.cpp
parent4ff84cbfb32e4ca7f4804c5d8f4c5267eb6a3e38 (diff)
parent483994601d8c9f25185fc78e1ae60b19849b00f9 (diff)
Merge pull request #36388 from AndreaCatania/some_renames
Rename Navigation{Mesh,Polygon}Instance and PlaneShape for clarity
Diffstat (limited to 'main/tests/test_physics.cpp')
-rw-r--r--main/tests/test_physics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/tests/test_physics.cpp b/main/tests/test_physics.cpp
index 43958a9493..0304e8f6dd 100644
--- a/main/tests/test_physics.cpp
+++ b/main/tests/test_physics.cpp
@@ -110,13 +110,13 @@ protected:
PhysicsServer *ps = PhysicsServer::get_singleton();
- RID plane_shape = ps->shape_create(PhysicsServer::SHAPE_PLANE);
- ps->shape_set_data(plane_shape, p_plane);
+ RID world_margin_shape = ps->shape_create(PhysicsServer::SHAPE_PLANE);
+ ps->shape_set_data(world_margin_shape, p_plane);
RID b = ps->body_create(PhysicsServer::BODY_MODE_STATIC);
ps->body_set_space(b, space);
//todo set space
- ps->body_add_shape(b, plane_shape);
+ ps->body_add_shape(b, world_margin_shape);
return b;
}