summaryrefslogtreecommitdiffstats
path: root/scene/2d/physics_body_2d.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-08-05 16:06:15 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-08-05 16:06:15 -0300
commitde9fb90dbf9473b91e75edbd063fb96f9ea4d262 (patch)
treea2b9a1d38cf50ac1848a5c301819dbf10c111de3 /scene/2d/physics_body_2d.h
parentcfe4b30941a3388a5ee40690fd468f994180fa86 (diff)
downloadredot-engine-de9fb90dbf9473b91e75edbd063fb96f9ea4d262.tar.gz
Warn about resizing a rigidbody (2D or 3D), covers the most common cases, closes #7615
Diffstat (limited to 'scene/2d/physics_body_2d.h')
-rw-r--r--scene/2d/physics_body_2d.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/physics_body_2d.h b/scene/2d/physics_body_2d.h
index 8c8e4ebc77..54bd263b15 100644
--- a/scene/2d/physics_body_2d.h
+++ b/scene/2d/physics_body_2d.h
@@ -185,6 +185,7 @@ private:
bool _test_motion(const Vector2 &p_motion, float p_margin = 0.08, const Ref<Physics2DTestMotionResult> &p_result = Ref<Physics2DTestMotionResult>());
protected:
+ void _notification(int p_what);
static void _bind_methods();
public:
@@ -253,6 +254,8 @@ public:
Array get_colliding_bodies() const; //function for script
+ virtual String get_configuration_warning() const;
+
RigidBody2D();
~RigidBody2D();
};