diff options
| author | Juan Linietsky | 2015-03-22 01:46:18 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-03-22 01:46:18 -0300 |
| commit | c6c72a3c37a44964ec8e6b3353f78635bf588eab (patch) | |
| tree | 07cdc6f2a776dece704cce526cfd15ae04e44360 /servers/physics_2d/collision_object_2d_sw.h | |
| parent | 40496dd76ae53c93ef5ea7e56671682a7cae9def (diff) | |
| download | godot-c6c72a3c37a44964ec8e6b3353f78635bf588eab.tar.gz godot-c6c72a3c37a44964ec8e6b3353f78635bf588eab.tar.zst godot-c6c72a3c37a44964ec8e6b3353f78635bf588eab.zip | |
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.h | 4 |
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 00ad36124..0c9123787 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() {} }; |
