summaryrefslogtreecommitdiffstats
path: root/tests/test_physics_3d.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-06-05 00:58:44 +0200
committerGitHub <noreply@github.com>2021-06-05 00:58:44 +0200
commit8363ee6f8d398529d2db0e481fea82ccc9dcda31 (patch)
tree3c0f5f2826eae97cc025942ffbb13dbef1547d05 /tests/test_physics_3d.cpp
parent766c6dbb24c736eb1e24ca69eb15398eac654c2c (diff)
parent23abac93256185a47f64800220f6b9fa230b3f87 (diff)
downloadredot-engine-8363ee6f8d398529d2db0e481fea82ccc9dcda31.tar.gz
Merge pull request #48908 from nekomatata/physics-nodes-reorganization
Physics nodes reorganization
Diffstat (limited to 'tests/test_physics_3d.cpp')
-rw-r--r--tests/test_physics_3d.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_physics_3d.cpp b/tests/test_physics_3d.cpp
index 02f1b8175d..4488e4bf64 100644
--- a/tests/test_physics_3d.cpp
+++ b/tests/test_physics_3d.cpp
@@ -362,7 +362,7 @@ public:
RID mesh_instance = vs->instance_create2(capsule_mesh, scenario);
character = ps->body_create();
- ps->body_set_mode(character, PhysicsServer3D::BODY_MODE_CHARACTER);
+ ps->body_set_mode(character, PhysicsServer3D::BODY_MODE_DYNAMIC_LOCKED);
ps->body_set_space(character, space);
//todo add space
ps->body_add_shape(character, capsule_shape);
@@ -388,14 +388,14 @@ public:
t.origin = Vector3(0.0 * i, 3.5 + 1.1 * i, 0.7 + 0.0 * i);
t.basis.rotate(Vector3(0.2, -1, 0), Math_PI / 2 * 0.6);
- create_body(type, PhysicsServer3D::BODY_MODE_RIGID, t);
+ create_body(type, PhysicsServer3D::BODY_MODE_DYNAMIC, t);
}
create_static_plane(Plane(Vector3(0, 1, 0), -1));
}
void test_activate() {
- create_body(PhysicsServer3D::SHAPE_BOX, PhysicsServer3D::BODY_MODE_RIGID, Transform3D(Basis(), Vector3(0, 2, 0)), true);
+ create_body(PhysicsServer3D::SHAPE_BOX, PhysicsServer3D::BODY_MODE_DYNAMIC, Transform3D(Basis(), Vector3(0, 2, 0)), true);
create_static_plane(Plane(Vector3(0, 1, 0), -1));
}