29 #ifndef COLLISION_POLYGON_2D_H 30 #define COLLISION_POLYGON_2D_H 32 #include "scene/2d/node_2d.h" 33 #include "scene/resources/shape_2d.h" 56 void _add_to_collision_object(
Object *p_obj);
57 void _update_parent();
63 void _set_shape_range(
const Vector2& p_range);
64 Vector2 _get_shape_range()
const;
70 void _notification(
int p_what);
71 static void _bind_methods();
74 void set_trigger(
bool p_trigger);
75 bool is_trigger()
const;
77 void set_build_mode(BuildMode p_mode);
78 BuildMode get_build_mode()
const;
83 virtual Rect2 get_item_rect()
const;
85 int get_collision_object_first_shape()
const {
return shape_from; }
86 int get_collision_object_last_shape()
const {
return shape_to; }
91 VARIANT_ENUM_CAST( CollisionPolygon2D::BuildMode );
93 #endif // COLLISION_POLYGON_2D_H Definition: math_2d.h:204
Definition: collision_polygon_2d.h:37