summaryrefslogtreecommitdiff
path: root/scene/2d/collision_polygon_2d.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-12-21 11:46:28 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-12-21 11:46:28 -0300
commit78e7777cf5ed721b4802066a769b5ecc0c530c3b (patch)
treed2a8f851fd3ec87776b7bddec651d7489533278c /scene/2d/collision_polygon_2d.h
parentf7f197c40941ffaf03fcddeb20536dec8074ca00 (diff)
parente7c1137d927baf6daefa218b48ac1c891cb356ee (diff)
Merge branch 'master' of https://github.com/okamstudio/godot
Conflicts: modules/gdscript/gd_editor.cpp Improved code completion for InputEvent (shows members by type)
Diffstat (limited to 'scene/2d/collision_polygon_2d.h')
-rw-r--r--scene/2d/collision_polygon_2d.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/2d/collision_polygon_2d.h b/scene/2d/collision_polygon_2d.h
index 09c2060088..b8e27b6fb4 100644
--- a/scene/2d/collision_polygon_2d.h
+++ b/scene/2d/collision_polygon_2d.h
@@ -50,6 +50,7 @@ protected:
Rect2 aabb;
BuildMode build_mode;
Vector<Point2> polygon;
+ bool trigger;
void _add_to_collision_object(Object *p_obj);
void _update_parent();
@@ -60,6 +61,9 @@ protected:
static void _bind_methods();
public:
+ void set_trigger(bool p_trigger);
+ bool is_trigger() const;
+
void set_build_mode(BuildMode p_mode);
BuildMode get_build_mode() const;