.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_CollisionObject: CollisionObject =============== **Inherits:** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` **Inherited By:** :ref:`PhysicsBody`, :ref:`Area` **Category:** Core Brief Description ----------------- Member Functions ---------------- +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_input_event` **(** :ref:`Object` camera, :ref:`InputEvent` event, :ref:`Vector3` click_pos, :ref:`Vector3` click_normal, :ref:`int` shape_idx **)** virtual | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_shape` **(** :ref:`Shape` shape, :ref:`Transform` transform=Transform() **)** | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear_shapes` **(** **)** | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_capture_input_on_drag` **(** **)** const | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`RID` | :ref:`get_rid` **(** **)** const | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Shape` | :ref:`get_shape` **(** :ref:`int` shape_idx **)** const | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_shape_count` **(** **)** const | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Transform` | :ref:`get_shape_transform` **(** :ref:`int` shape_idx **)** const | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_ray_pickable` **(** **)** const | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_shape_set_as_trigger` **(** :ref:`int` shape_idx **)** const | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_shape` **(** :ref:`int` shape_idx **)** | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_capture_input_on_drag` **(** :ref:`bool` enable **)** | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_ray_pickable` **(** :ref:`bool` ray_pickable **)** | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_shape` **(** :ref:`int` shape_idx, :ref:`Shape` shape **)** | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_shape_as_trigger` **(** :ref:`int` shape_idx, :ref:`bool` enable **)** | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_shape_transform` **(** :ref:`int` shape_idx, :ref:`Transform` transform **)** | +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- - **input_event** **(** :ref:`Object` camera, :ref:`InputEvent` event, :ref:`Vector3` click_pos, :ref:`Vector3` click_normal, :ref:`int` shape_idx **)** - **mouse_enter** **(** **)** - **mouse_exit** **(** **)** Member Function Description --------------------------- .. _class_CollisionObject__input_event: - void **_input_event** **(** :ref:`Object` camera, :ref:`InputEvent` event, :ref:`Vector3` click_pos, :ref:`Vector3` click_normal, :ref:`int` shape_idx **)** virtual .. _class_CollisionObject_add_shape: - void **add_shape** **(** :ref:`Shape` shape, :ref:`Transform` transform=Transform() **)** .. _class_CollisionObject_clear_shapes: - void **clear_shapes** **(** **)** .. _class_CollisionObject_get_capture_input_on_drag: - :ref:`bool` **get_capture_input_on_drag** **(** **)** const .. _class_CollisionObject_get_rid: - :ref:`RID` **get_rid** **(** **)** const .. _class_CollisionObject_get_shape: - :ref:`Shape` **get_shape** **(** :ref:`int` shape_idx **)** const .. _class_CollisionObject_get_shape_count: - :ref:`int` **get_shape_count** **(** **)** const .. _class_CollisionObject_get_shape_transform: - :ref:`Transform` **get_shape_transform** **(** :ref:`int` shape_idx **)** const .. _class_CollisionObject_is_ray_pickable: - :ref:`bool` **is_ray_pickable** **(** **)** const .. _class_CollisionObject_is_shape_set_as_trigger: - :ref:`bool` **is_shape_set_as_trigger** **(** :ref:`int` shape_idx **)** const .. _class_CollisionObject_remove_shape: - void **remove_shape** **(** :ref:`int` shape_idx **)** .. _class_CollisionObject_set_capture_input_on_drag: - void **set_capture_input_on_drag** **(** :ref:`bool` enable **)** .. _class_CollisionObject_set_ray_pickable: - void **set_ray_pickable** **(** :ref:`bool` ray_pickable **)** .. _class_CollisionObject_set_shape: - void **set_shape** **(** :ref:`int` shape_idx, :ref:`Shape` shape **)** .. _class_CollisionObject_set_shape_as_trigger: - void **set_shape_as_trigger** **(** :ref:`int` shape_idx, :ref:`bool` enable **)** .. _class_CollisionObject_set_shape_transform: - void **set_shape_transform** **(** :ref:`int` shape_idx, :ref:`Transform` transform **)**