29 #ifndef COLLISION_SHAPE_2D_H 30 #define COLLISION_SHAPE_2D_H 32 #include "scene/2d/node_2d.h" 33 #include "scene/resources/shape_2d.h" 43 void _shape_changed();
44 int update_shape_index;
46 void _set_update_shape_index(
int p_index);
47 int _get_update_shape_index()
const;
51 void _update_parent();
52 void _notification(
int p_what);
53 static void _bind_methods();
55 void _add_to_collision_object(
Object *p_obj);
60 virtual Rect2 get_item_rect()
const;
61 void set_trigger(
bool p_trigger);
62 bool is_trigger()
const;
64 int get_collision_object_shape_index()
const {
return _get_update_shape_index(); }
69 #endif // COLLISION_SHAPE_2D_H
Definition: math_2d.h:204
Definition: collision_shape_2d.h:35