summaryrefslogtreecommitdiff
path: root/servers/physics_2d/collision_object_2d_sw.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-03-22 01:46:18 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-03-22 01:46:18 -0300
commitc6c72a3c37a44964ec8e6b3353f78635bf588eab (patch)
tree07cdc6f2a776dece704cce526cfd15ae04e44360 /servers/physics_2d/collision_object_2d_sw.h
parent40496dd76ae53c93ef5ea7e56671682a7cae9def (diff)
input events on Area2D is now supported
also added a demo showing how this works
Diffstat (limited to 'servers/physics_2d/collision_object_2d_sw.h')
-rw-r--r--servers/physics_2d/collision_object_2d_sw.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/physics_2d/collision_object_2d_sw.h b/servers/physics_2d/collision_object_2d_sw.h
index 00ad361245..0c91237876 100644
--- a/servers/physics_2d/collision_object_2d_sw.h
+++ b/servers/physics_2d/collision_object_2d_sw.h
@@ -47,6 +47,7 @@ private:
Type type;
RID self;
ObjectID instance_id;
+ bool pickable;
struct Shape {
@@ -129,6 +130,9 @@ public:
_FORCE_INLINE_ bool is_static() const { return _static; }
+ void set_pickable(bool p_pickable) { pickable=p_pickable; }
+ _FORCE_INLINE_ bool is_pickable() const { return pickable; }
+
virtual ~CollisionObject2DSW() {}
};