29 #ifndef COLLISION_OBJECT_2D_H 30 #define COLLISION_OBJECT_2D_H 32 #include "scene/2d/node_2d.h" 33 #include "scene/resources/shape_2d.h" 56 void _update_shapes();
60 void _update_shapes_from_children();
65 void _notification(
int p_what);
69 static void _bind_methods();
71 void _update_pickable();
73 void _input_event(
Node *p_viewport,
const InputEvent& p_input_event,
int p_shape);
82 int get_shape_count()
const;
83 void set_shape(
int p_shape_idx,
const Ref<Shape2D>& p_shape);
84 void set_shape_transform(
int p_shape_idx,
const Matrix32& p_transform);
86 Matrix32 get_shape_transform(
int p_shape_idx)
const;
87 void set_shape_as_trigger(
int p_shape_idx,
bool p_trigger);
88 bool is_shape_set_as_trigger(
int p_shape_idx)
const;
89 void remove_shape(
int p_shape_idx);
92 void set_pickable(
bool p_enabled);
93 bool is_pickable()
const;
95 _FORCE_INLINE_
RID get_rid()
const {
return rid; }
101 #endif // COLLISION_OBJECT_2D_H
Definition: viewport.h:75
Definition: string_db.h:48
Definition: collision_shape_2d.h:35
Definition: collision_polygon_2d.h:37
Definition: math_2d.h:554
Definition: collision_object_2d.h:35