mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
classref: Sync with current master branch (705b7a0)
This commit is contained in:
@@ -116,7 +116,7 @@ Signals
|
||||
|
||||
.. rst-class:: classref-signal
|
||||
|
||||
**input_event**\ (\ camera\: :ref:`Node<class_Node>`, event\: :ref:`InputEvent<class_InputEvent>`, event_position\: :ref:`Vector3<class_Vector3>`, normal\: :ref:`Vector3<class_Vector3>`, shape_idx\: :ref:`int<class_int>`\ )
|
||||
**input_event**\ (\ camera\: :ref:`Node<class_Node>`, event\: :ref:`InputEvent<class_InputEvent>`, event_position\: :ref:`Vector3<class_Vector3>`, normal\: :ref:`Vector3<class_Vector3>`, shape_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_CollisionObject3D_signal_input_event>`
|
||||
|
||||
Emitted when the object receives an unhandled :ref:`InputEvent<class_InputEvent>`. ``event_position`` is the location in world space of the mouse pointer on the surface of the shape with index ``shape_idx`` and ``normal`` is the normal vector of the surface at that point.
|
||||
|
||||
@@ -128,7 +128,7 @@ Emitted when the object receives an unhandled :ref:`InputEvent<class_InputEvent>
|
||||
|
||||
.. rst-class:: classref-signal
|
||||
|
||||
**mouse_entered**\ (\ )
|
||||
**mouse_entered**\ (\ ) :ref:`🔗<class_CollisionObject3D_signal_mouse_entered>`
|
||||
|
||||
Emitted when the mouse pointer enters any of this object's shapes. Requires :ref:`input_ray_pickable<class_CollisionObject3D_property_input_ray_pickable>` to be ``true`` and at least one :ref:`collision_layer<class_CollisionObject3D_property_collision_layer>` bit to be set.
|
||||
|
||||
@@ -142,7 +142,7 @@ Emitted when the mouse pointer enters any of this object's shapes. Requires :ref
|
||||
|
||||
.. rst-class:: classref-signal
|
||||
|
||||
**mouse_exited**\ (\ )
|
||||
**mouse_exited**\ (\ ) :ref:`🔗<class_CollisionObject3D_signal_mouse_exited>`
|
||||
|
||||
Emitted when the mouse pointer exits all this object's shapes. Requires :ref:`input_ray_pickable<class_CollisionObject3D_property_input_ray_pickable>` to be ``true`` and at least one :ref:`collision_layer<class_CollisionObject3D_property_collision_layer>` bit to be set.
|
||||
|
||||
@@ -161,7 +161,7 @@ Enumerations
|
||||
|
||||
.. rst-class:: classref-enumeration
|
||||
|
||||
enum **DisableMode**:
|
||||
enum **DisableMode**: :ref:`🔗<enum_CollisionObject3D_DisableMode>`
|
||||
|
||||
.. _class_CollisionObject3D_constant_DISABLE_MODE_REMOVE:
|
||||
|
||||
@@ -204,7 +204,7 @@ Property Descriptions
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`int<class_int>` **collision_layer** = ``1``
|
||||
:ref:`int<class_int>` **collision_layer** = ``1`` :ref:`🔗<class_CollisionObject3D_property_collision_layer>`
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
@@ -223,7 +223,7 @@ The physics layers this CollisionObject3D **is in**. Collision objects can exist
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`int<class_int>` **collision_mask** = ``1``
|
||||
:ref:`int<class_int>` **collision_mask** = ``1`` :ref:`🔗<class_CollisionObject3D_property_collision_mask>`
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
@@ -242,7 +242,7 @@ The physics layers this CollisionObject3D **scans**. Collision objects can scan
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`float<class_float>` **collision_priority** = ``1.0``
|
||||
:ref:`float<class_float>` **collision_priority** = ``1.0`` :ref:`🔗<class_CollisionObject3D_property_collision_priority>`
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
@@ -259,7 +259,7 @@ The priority used to solve colliding when occurring penetration. The higher the
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`DisableMode<enum_CollisionObject3D_DisableMode>` **disable_mode** = ``0``
|
||||
:ref:`DisableMode<enum_CollisionObject3D_DisableMode>` **disable_mode** = ``0`` :ref:`🔗<class_CollisionObject3D_property_disable_mode>`
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
@@ -276,7 +276,7 @@ Defines the behavior in physics when :ref:`Node.process_mode<class_Node_property
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`bool<class_bool>` **input_capture_on_drag** = ``false``
|
||||
:ref:`bool<class_bool>` **input_capture_on_drag** = ``false`` :ref:`🔗<class_CollisionObject3D_property_input_capture_on_drag>`
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
@@ -293,7 +293,7 @@ If ``true``, the **CollisionObject3D** will continue to receive input events as
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`bool<class_bool>` **input_ray_pickable** = ``true``
|
||||
:ref:`bool<class_bool>` **input_ray_pickable** = ``true`` :ref:`🔗<class_CollisionObject3D_property_input_ray_pickable>`
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
@@ -315,7 +315,7 @@ Method Descriptions
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **_input_event**\ (\ camera\: :ref:`Camera3D<class_Camera3D>`, event\: :ref:`InputEvent<class_InputEvent>`, event_position\: :ref:`Vector3<class_Vector3>`, normal\: :ref:`Vector3<class_Vector3>`, shape_idx\: :ref:`int<class_int>`\ ) |virtual|
|
||||
|void| **_input_event**\ (\ camera\: :ref:`Camera3D<class_Camera3D>`, event\: :ref:`InputEvent<class_InputEvent>`, event_position\: :ref:`Vector3<class_Vector3>`, normal\: :ref:`Vector3<class_Vector3>`, shape_idx\: :ref:`int<class_int>`\ ) |virtual| :ref:`🔗<class_CollisionObject3D_private_method__input_event>`
|
||||
|
||||
Receives unhandled :ref:`InputEvent<class_InputEvent>`\ s. ``event_position`` is the location in world space of the mouse pointer on the surface of the shape with index ``shape_idx`` and ``normal`` is the normal vector of the surface at that point. Connect to the :ref:`input_event<class_CollisionObject3D_signal_input_event>` signal to easily pick up these events.
|
||||
|
||||
@@ -329,7 +329,7 @@ Receives unhandled :ref:`InputEvent<class_InputEvent>`\ s. ``event_position`` is
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **_mouse_enter**\ (\ ) |virtual|
|
||||
|void| **_mouse_enter**\ (\ ) |virtual| :ref:`🔗<class_CollisionObject3D_private_method__mouse_enter>`
|
||||
|
||||
Called when the mouse pointer enters any of this object's shapes. Requires :ref:`input_ray_pickable<class_CollisionObject3D_property_input_ray_pickable>` to be ``true`` and at least one :ref:`collision_layer<class_CollisionObject3D_property_collision_layer>` bit to be set. Note that moving between different shapes within a single **CollisionObject3D** won't cause this function to be called.
|
||||
|
||||
@@ -341,7 +341,7 @@ Called when the mouse pointer enters any of this object's shapes. Requires :ref:
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **_mouse_exit**\ (\ ) |virtual|
|
||||
|void| **_mouse_exit**\ (\ ) |virtual| :ref:`🔗<class_CollisionObject3D_private_method__mouse_exit>`
|
||||
|
||||
Called when the mouse pointer exits all this object's shapes. Requires :ref:`input_ray_pickable<class_CollisionObject3D_property_input_ray_pickable>` to be ``true`` and at least one :ref:`collision_layer<class_CollisionObject3D_property_collision_layer>` bit to be set. Note that moving between different shapes within a single **CollisionObject3D** won't cause this function to be called.
|
||||
|
||||
@@ -353,7 +353,7 @@ Called when the mouse pointer exits all this object's shapes. Requires :ref:`inp
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`int<class_int>` **create_shape_owner**\ (\ owner\: :ref:`Object<class_Object>`\ )
|
||||
:ref:`int<class_int>` **create_shape_owner**\ (\ owner\: :ref:`Object<class_Object>`\ ) :ref:`🔗<class_CollisionObject3D_method_create_shape_owner>`
|
||||
|
||||
Creates a new shape owner for the given object. Returns ``owner_id`` of the new owner for future reference.
|
||||
|
||||
@@ -365,7 +365,7 @@ Creates a new shape owner for the given object. Returns ``owner_id`` of the new
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`bool<class_bool>` **get_collision_layer_value**\ (\ layer_number\: :ref:`int<class_int>`\ ) |const|
|
||||
:ref:`bool<class_bool>` **get_collision_layer_value**\ (\ layer_number\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_CollisionObject3D_method_get_collision_layer_value>`
|
||||
|
||||
Returns whether or not the specified layer of the :ref:`collision_layer<class_CollisionObject3D_property_collision_layer>` is enabled, given a ``layer_number`` between 1 and 32.
|
||||
|
||||
@@ -377,7 +377,7 @@ Returns whether or not the specified layer of the :ref:`collision_layer<class_Co
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`bool<class_bool>` **get_collision_mask_value**\ (\ layer_number\: :ref:`int<class_int>`\ ) |const|
|
||||
:ref:`bool<class_bool>` **get_collision_mask_value**\ (\ layer_number\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_CollisionObject3D_method_get_collision_mask_value>`
|
||||
|
||||
Returns whether or not the specified layer of the :ref:`collision_mask<class_CollisionObject3D_property_collision_mask>` is enabled, given a ``layer_number`` between 1 and 32.
|
||||
|
||||
@@ -389,7 +389,7 @@ Returns whether or not the specified layer of the :ref:`collision_mask<class_Col
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`RID<class_RID>` **get_rid**\ (\ ) |const|
|
||||
:ref:`RID<class_RID>` **get_rid**\ (\ ) |const| :ref:`🔗<class_CollisionObject3D_method_get_rid>`
|
||||
|
||||
Returns the object's :ref:`RID<class_RID>`.
|
||||
|
||||
@@ -401,7 +401,7 @@ Returns the object's :ref:`RID<class_RID>`.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`PackedInt32Array<class_PackedInt32Array>` **get_shape_owners**\ (\ )
|
||||
:ref:`PackedInt32Array<class_PackedInt32Array>` **get_shape_owners**\ (\ ) :ref:`🔗<class_CollisionObject3D_method_get_shape_owners>`
|
||||
|
||||
Returns an :ref:`Array<class_Array>` of ``owner_id`` identifiers. You can use these ids in other methods that take ``owner_id`` as an argument.
|
||||
|
||||
@@ -413,7 +413,7 @@ Returns an :ref:`Array<class_Array>` of ``owner_id`` identifiers. You can use th
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`bool<class_bool>` **is_shape_owner_disabled**\ (\ owner_id\: :ref:`int<class_int>`\ ) |const|
|
||||
:ref:`bool<class_bool>` **is_shape_owner_disabled**\ (\ owner_id\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_CollisionObject3D_method_is_shape_owner_disabled>`
|
||||
|
||||
If ``true``, the shape owner and its shapes are disabled.
|
||||
|
||||
@@ -425,7 +425,7 @@ If ``true``, the shape owner and its shapes are disabled.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **remove_shape_owner**\ (\ owner_id\: :ref:`int<class_int>`\ )
|
||||
|void| **remove_shape_owner**\ (\ owner_id\: :ref:`int<class_int>`\ ) :ref:`🔗<class_CollisionObject3D_method_remove_shape_owner>`
|
||||
|
||||
Removes the given shape owner.
|
||||
|
||||
@@ -437,7 +437,7 @@ Removes the given shape owner.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **set_collision_layer_value**\ (\ layer_number\: :ref:`int<class_int>`, value\: :ref:`bool<class_bool>`\ )
|
||||
|void| **set_collision_layer_value**\ (\ layer_number\: :ref:`int<class_int>`, value\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_CollisionObject3D_method_set_collision_layer_value>`
|
||||
|
||||
Based on ``value``, enables or disables the specified layer in the :ref:`collision_layer<class_CollisionObject3D_property_collision_layer>`, given a ``layer_number`` between 1 and 32.
|
||||
|
||||
@@ -449,7 +449,7 @@ Based on ``value``, enables or disables the specified layer in the :ref:`collisi
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **set_collision_mask_value**\ (\ layer_number\: :ref:`int<class_int>`, value\: :ref:`bool<class_bool>`\ )
|
||||
|void| **set_collision_mask_value**\ (\ layer_number\: :ref:`int<class_int>`, value\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_CollisionObject3D_method_set_collision_mask_value>`
|
||||
|
||||
Based on ``value``, enables or disables the specified layer in the :ref:`collision_mask<class_CollisionObject3D_property_collision_mask>`, given a ``layer_number`` between 1 and 32.
|
||||
|
||||
@@ -461,7 +461,7 @@ Based on ``value``, enables or disables the specified layer in the :ref:`collisi
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`int<class_int>` **shape_find_owner**\ (\ shape_index\: :ref:`int<class_int>`\ ) |const|
|
||||
:ref:`int<class_int>` **shape_find_owner**\ (\ shape_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_CollisionObject3D_method_shape_find_owner>`
|
||||
|
||||
Returns the ``owner_id`` of the given shape.
|
||||
|
||||
@@ -473,7 +473,7 @@ Returns the ``owner_id`` of the given shape.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **shape_owner_add_shape**\ (\ owner_id\: :ref:`int<class_int>`, shape\: :ref:`Shape3D<class_Shape3D>`\ )
|
||||
|void| **shape_owner_add_shape**\ (\ owner_id\: :ref:`int<class_int>`, shape\: :ref:`Shape3D<class_Shape3D>`\ ) :ref:`🔗<class_CollisionObject3D_method_shape_owner_add_shape>`
|
||||
|
||||
Adds a :ref:`Shape3D<class_Shape3D>` to the shape owner.
|
||||
|
||||
@@ -485,7 +485,7 @@ Adds a :ref:`Shape3D<class_Shape3D>` to the shape owner.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **shape_owner_clear_shapes**\ (\ owner_id\: :ref:`int<class_int>`\ )
|
||||
|void| **shape_owner_clear_shapes**\ (\ owner_id\: :ref:`int<class_int>`\ ) :ref:`🔗<class_CollisionObject3D_method_shape_owner_clear_shapes>`
|
||||
|
||||
Removes all shapes from the shape owner.
|
||||
|
||||
@@ -497,7 +497,7 @@ Removes all shapes from the shape owner.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Object<class_Object>` **shape_owner_get_owner**\ (\ owner_id\: :ref:`int<class_int>`\ ) |const|
|
||||
:ref:`Object<class_Object>` **shape_owner_get_owner**\ (\ owner_id\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_CollisionObject3D_method_shape_owner_get_owner>`
|
||||
|
||||
Returns the parent object of the given shape owner.
|
||||
|
||||
@@ -509,7 +509,7 @@ Returns the parent object of the given shape owner.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Shape3D<class_Shape3D>` **shape_owner_get_shape**\ (\ owner_id\: :ref:`int<class_int>`, shape_id\: :ref:`int<class_int>`\ ) |const|
|
||||
:ref:`Shape3D<class_Shape3D>` **shape_owner_get_shape**\ (\ owner_id\: :ref:`int<class_int>`, shape_id\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_CollisionObject3D_method_shape_owner_get_shape>`
|
||||
|
||||
Returns the :ref:`Shape3D<class_Shape3D>` with the given ID from the given shape owner.
|
||||
|
||||
@@ -521,7 +521,7 @@ Returns the :ref:`Shape3D<class_Shape3D>` with the given ID from the given shape
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`int<class_int>` **shape_owner_get_shape_count**\ (\ owner_id\: :ref:`int<class_int>`\ ) |const|
|
||||
:ref:`int<class_int>` **shape_owner_get_shape_count**\ (\ owner_id\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_CollisionObject3D_method_shape_owner_get_shape_count>`
|
||||
|
||||
Returns the number of shapes the given shape owner contains.
|
||||
|
||||
@@ -533,7 +533,7 @@ Returns the number of shapes the given shape owner contains.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`int<class_int>` **shape_owner_get_shape_index**\ (\ owner_id\: :ref:`int<class_int>`, shape_id\: :ref:`int<class_int>`\ ) |const|
|
||||
:ref:`int<class_int>` **shape_owner_get_shape_index**\ (\ owner_id\: :ref:`int<class_int>`, shape_id\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_CollisionObject3D_method_shape_owner_get_shape_index>`
|
||||
|
||||
Returns the child index of the :ref:`Shape3D<class_Shape3D>` with the given ID from the given shape owner.
|
||||
|
||||
@@ -545,7 +545,7 @@ Returns the child index of the :ref:`Shape3D<class_Shape3D>` with the given ID f
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **shape_owner_get_transform**\ (\ owner_id\: :ref:`int<class_int>`\ ) |const|
|
||||
:ref:`Transform3D<class_Transform3D>` **shape_owner_get_transform**\ (\ owner_id\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_CollisionObject3D_method_shape_owner_get_transform>`
|
||||
|
||||
Returns the shape owner's :ref:`Transform3D<class_Transform3D>`.
|
||||
|
||||
@@ -557,7 +557,7 @@ Returns the shape owner's :ref:`Transform3D<class_Transform3D>`.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **shape_owner_remove_shape**\ (\ owner_id\: :ref:`int<class_int>`, shape_id\: :ref:`int<class_int>`\ )
|
||||
|void| **shape_owner_remove_shape**\ (\ owner_id\: :ref:`int<class_int>`, shape_id\: :ref:`int<class_int>`\ ) :ref:`🔗<class_CollisionObject3D_method_shape_owner_remove_shape>`
|
||||
|
||||
Removes a shape from the given shape owner.
|
||||
|
||||
@@ -569,7 +569,7 @@ Removes a shape from the given shape owner.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **shape_owner_set_disabled**\ (\ owner_id\: :ref:`int<class_int>`, disabled\: :ref:`bool<class_bool>`\ )
|
||||
|void| **shape_owner_set_disabled**\ (\ owner_id\: :ref:`int<class_int>`, disabled\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_CollisionObject3D_method_shape_owner_set_disabled>`
|
||||
|
||||
If ``true``, disables the given shape owner.
|
||||
|
||||
@@ -581,7 +581,7 @@ If ``true``, disables the given shape owner.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
|void| **shape_owner_set_transform**\ (\ owner_id\: :ref:`int<class_int>`, transform\: :ref:`Transform3D<class_Transform3D>`\ )
|
||||
|void| **shape_owner_set_transform**\ (\ owner_id\: :ref:`int<class_int>`, transform\: :ref:`Transform3D<class_Transform3D>`\ ) :ref:`🔗<class_CollisionObject3D_method_shape_owner_set_transform>`
|
||||
|
||||
Sets the :ref:`Transform3D<class_Transform3D>` of the given shape owner.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user