diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/tests/test_physics_2d.cpp | 6 | ||||
-rw-r--r-- | main/tests/test_physics_3d.cpp | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/main/tests/test_physics_2d.cpp b/main/tests/test_physics_2d.cpp index 6cb9bf7b60..c82ae920bc 100644 --- a/main/tests/test_physics_2d.cpp +++ b/main/tests/test_physics_2d.cpp @@ -315,7 +315,7 @@ protected: } public: - virtual void init() { + virtual void init() override { RenderingServer *vs = RenderingServer::get_singleton(); PhysicsServer2D *ps = PhysicsServer2D::get_singleton(); @@ -389,10 +389,10 @@ public: //_add_plane(Vector2(-1,0).normalized(),-600); } - virtual bool idle(float p_time) { + virtual bool idle(float p_time) override { return false; } - virtual void finish() { + virtual void finish() override { } TestPhysics2DMainLoop() {} diff --git a/main/tests/test_physics_3d.cpp b/main/tests/test_physics_3d.cpp index dfe2e946cf..72de2041e4 100644 --- a/main/tests/test_physics_3d.cpp +++ b/main/tests/test_physics_3d.cpp @@ -269,7 +269,7 @@ public: virtual void request_quit() { quit = true; } - virtual void init() { + virtual void init() override { ofs_x = ofs_y = 0; init_shapes(); @@ -310,7 +310,7 @@ public: test_fall(); quit = false; } - virtual bool iteration(float p_time) { + virtual bool iteration(float p_time) override { if (mover.is_valid()) { static float joy_speed = 10; PhysicsServer3D *ps = PhysicsServer3D::get_singleton(); @@ -328,7 +328,7 @@ public: return quit; } - virtual void finish() { + virtual void finish() override { } void test_joint() { @@ -396,7 +396,7 @@ public: create_static_plane(Plane(Vector3(0, 1, 0), -1)); } - virtual bool idle(float p_time) { + virtual bool idle(float p_time) override { return false; } |