29 #ifndef COLLISION_OBJECT_H 30 #define COLLISION_OBJECT_H 32 #include "scene/3d/spatial.h" 33 #include "scene/resources/shape.h" 53 bool capture_input_on_drag;
57 void _update_pickable();
58 void _update_shapes();
62 void _update_shapes_from_children();
67 void _notification(
int p_what);
71 static void _bind_methods();
74 virtual void _mouse_enter();
75 virtual void _mouse_exit();
81 int get_shape_count()
const;
82 void set_shape(
int p_shape_idx,
const Ref<Shape>& p_shape);
83 void set_shape_transform(
int p_shape_idx,
const Transform& p_transform);
85 Transform get_shape_transform(
int p_shape_idx)
const;
86 void remove_shape(
int p_shape_idx);
88 void set_shape_as_trigger(
int p_shape_idx,
bool p_trigger);
89 bool is_shape_set_as_trigger(
int p_shape_idx)
const;
91 void set_ray_pickable(
bool p_ray_pickable);
92 bool is_ray_pickable()
const;
94 void set_capture_input_on_drag(
bool p_capture);
95 bool get_capture_input_on_drag()
const;
98 _FORCE_INLINE_
RID get_rid()
const {
return rid; }
104 #endif // COLLISION_OBJECT__H
Definition: viewport.h:75
Definition: string_db.h:48
Definition: body_shape.h:35
Definition: collision_object.h:35
Definition: collision_polygon.h:9