mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
66 lines
3.3 KiB
ReStructuredText
66 lines
3.3 KiB
ReStructuredText
.. _class_CollisionShape:
|
|
|
|
CollisionShape
|
|
==============
|
|
|
|
**Inherits:** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`resource_changed<class_CollisionShape_resource_changed>` **(** :ref:`Object<class_object>` resource **)** |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_shape<class_CollisionShape_set_shape>` **(** :ref:`Object<class_object>` shape **)** |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`Object<class_object>` | :ref:`get_shape<class_CollisionShape_get_shape>` **(** **)** const |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_trigger<class_CollisionShape_set_trigger>` **(** :ref:`bool<class_bool>` enable **)** |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`is_trigger<class_CollisionShape_is_trigger>` **(** **)** const |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`make_convex_from_brothers<class_CollisionShape_make_convex_from_brothers>` **(** **)** |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_collision_object_shape_index<class_CollisionShape_get_collision_object_shape_index>` **(** **)** const |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_CollisionShape_resource_changed:
|
|
|
|
- void **resource_changed** **(** :ref:`Object<class_object>` resource **)**
|
|
|
|
.. _class_CollisionShape_set_shape:
|
|
|
|
- void **set_shape** **(** :ref:`Object<class_object>` shape **)**
|
|
|
|
.. _class_CollisionShape_get_shape:
|
|
|
|
- :ref:`Object<class_object>` **get_shape** **(** **)** const
|
|
|
|
.. _class_CollisionShape_set_trigger:
|
|
|
|
- void **set_trigger** **(** :ref:`bool<class_bool>` enable **)**
|
|
|
|
.. _class_CollisionShape_is_trigger:
|
|
|
|
- :ref:`bool<class_bool>` **is_trigger** **(** **)** const
|
|
|
|
.. _class_CollisionShape_make_convex_from_brothers:
|
|
|
|
- void **make_convex_from_brothers** **(** **)**
|
|
|
|
.. _class_CollisionShape_get_collision_object_shape_index:
|
|
|
|
- :ref:`int<class_int>` **get_collision_object_shape_index** **(** **)** const
|
|
|
|
|