mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-07 02:12:07 +03:00
classref: Sync with current master branch (2e7fc81)
This commit is contained in:
@@ -29,25 +29,25 @@ Properties
|
||||
.. table::
|
||||
:widths: auto
|
||||
|
||||
+---------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`collide_with_areas<class_PhysicsShapeQueryParameters3D_property_collide_with_areas>` | ``false`` |
|
||||
+---------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`collide_with_bodies<class_PhysicsShapeQueryParameters3D_property_collide_with_bodies>` | ``true`` |
|
||||
+---------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`collision_mask<class_PhysicsShapeQueryParameters3D_property_collision_mask>` | ``4294967295`` |
|
||||
+---------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`RID[]<class_RID>` | :ref:`exclude<class_PhysicsShapeQueryParameters3D_property_exclude>` | ``[]`` |
|
||||
+---------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`margin<class_PhysicsShapeQueryParameters3D_property_margin>` | ``0.0`` |
|
||||
+---------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`Vector3<class_Vector3>` | :ref:`motion<class_PhysicsShapeQueryParameters3D_property_motion>` | ``Vector3(0, 0, 0)`` |
|
||||
+---------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`Resource<class_Resource>` | :ref:`shape<class_PhysicsShapeQueryParameters3D_property_shape>` | |
|
||||
+---------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`RID<class_RID>` | :ref:`shape_rid<class_PhysicsShapeQueryParameters3D_property_shape_rid>` | ``RID()`` |
|
||||
+---------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`Transform3D<class_Transform3D>` | :ref:`transform<class_PhysicsShapeQueryParameters3D_property_transform>` | ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)`` |
|
||||
+---------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
+----------------------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`collide_with_areas<class_PhysicsShapeQueryParameters3D_property_collide_with_areas>` | ``false`` |
|
||||
+----------------------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`collide_with_bodies<class_PhysicsShapeQueryParameters3D_property_collide_with_bodies>` | ``true`` |
|
||||
+----------------------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`collision_mask<class_PhysicsShapeQueryParameters3D_property_collision_mask>` | ``4294967295`` |
|
||||
+----------------------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] | :ref:`exclude<class_PhysicsShapeQueryParameters3D_property_exclude>` | ``[]`` |
|
||||
+----------------------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`margin<class_PhysicsShapeQueryParameters3D_property_margin>` | ``0.0`` |
|
||||
+----------------------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`Vector3<class_Vector3>` | :ref:`motion<class_PhysicsShapeQueryParameters3D_property_motion>` | ``Vector3(0, 0, 0)`` |
|
||||
+----------------------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`Resource<class_Resource>` | :ref:`shape<class_PhysicsShapeQueryParameters3D_property_shape>` | |
|
||||
+----------------------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`RID<class_RID>` | :ref:`shape_rid<class_PhysicsShapeQueryParameters3D_property_shape_rid>` | ``RID()`` |
|
||||
+----------------------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
| :ref:`Transform3D<class_Transform3D>` | :ref:`transform<class_PhysicsShapeQueryParameters3D_property_transform>` | ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)`` |
|
||||
+----------------------------------------------------+----------------------------------------------------------------------------------------------+-----------------------------------------------------+
|
||||
|
||||
.. rst-class:: classref-section-separator
|
||||
|
||||
@@ -66,8 +66,8 @@ Property Descriptions
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_collide_with_areas** **(** :ref:`bool<class_bool>` value **)**
|
||||
- :ref:`bool<class_bool>` **is_collide_with_areas_enabled** **(** **)**
|
||||
- |void| **set_collide_with_areas**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||||
- :ref:`bool<class_bool>` **is_collide_with_areas_enabled**\ (\ )
|
||||
|
||||
If ``true``, the query will take :ref:`Area3D<class_Area3D>`\ s into account.
|
||||
|
||||
@@ -83,8 +83,8 @@ If ``true``, the query will take :ref:`Area3D<class_Area3D>`\ s into account.
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_collide_with_bodies** **(** :ref:`bool<class_bool>` value **)**
|
||||
- :ref:`bool<class_bool>` **is_collide_with_bodies_enabled** **(** **)**
|
||||
- |void| **set_collide_with_bodies**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||||
- :ref:`bool<class_bool>` **is_collide_with_bodies_enabled**\ (\ )
|
||||
|
||||
If ``true``, the query will take :ref:`PhysicsBody3D<class_PhysicsBody3D>`\ s into account.
|
||||
|
||||
@@ -100,8 +100,8 @@ If ``true``, the query will take :ref:`PhysicsBody3D<class_PhysicsBody3D>`\ s in
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_collision_mask** **(** :ref:`int<class_int>` value **)**
|
||||
- :ref:`int<class_int>` **get_collision_mask** **(** **)**
|
||||
- |void| **set_collision_mask**\ (\ value\: :ref:`int<class_int>`\ )
|
||||
- :ref:`int<class_int>` **get_collision_mask**\ (\ )
|
||||
|
||||
The physics layers the query will detect (as a bitmask). By default, all collision layers are detected. See `Collision layers and masks <../tutorials/physics/physics_introduction.html#collision-layers-and-masks>`__ in the documentation for more information.
|
||||
|
||||
@@ -113,12 +113,12 @@ The physics layers the query will detect (as a bitmask). By default, all collisi
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`RID[]<class_RID>` **exclude** = ``[]``
|
||||
:ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] **exclude** = ``[]``
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_exclude** **(** :ref:`RID[]<class_RID>` value **)**
|
||||
- :ref:`RID[]<class_RID>` **get_exclude** **(** **)**
|
||||
- |void| **set_exclude**\ (\ value\: :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\]\ )
|
||||
- :ref:`Array<class_Array>`\[:ref:`RID<class_RID>`\] **get_exclude**\ (\ )
|
||||
|
||||
The list of object :ref:`RID<class_RID>`\ s that will be excluded from collisions. Use :ref:`CollisionObject3D.get_rid<class_CollisionObject3D_method_get_rid>` to get the :ref:`RID<class_RID>` associated with a :ref:`CollisionObject3D<class_CollisionObject3D>`-derived node.
|
||||
|
||||
@@ -134,8 +134,8 @@ The list of object :ref:`RID<class_RID>`\ s that will be excluded from collision
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_margin** **(** :ref:`float<class_float>` value **)**
|
||||
- :ref:`float<class_float>` **get_margin** **(** **)**
|
||||
- |void| **set_margin**\ (\ value\: :ref:`float<class_float>`\ )
|
||||
- :ref:`float<class_float>` **get_margin**\ (\ )
|
||||
|
||||
The collision margin for the shape.
|
||||
|
||||
@@ -151,8 +151,8 @@ The collision margin for the shape.
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_motion** **(** :ref:`Vector3<class_Vector3>` value **)**
|
||||
- :ref:`Vector3<class_Vector3>` **get_motion** **(** **)**
|
||||
- |void| **set_motion**\ (\ value\: :ref:`Vector3<class_Vector3>`\ )
|
||||
- :ref:`Vector3<class_Vector3>` **get_motion**\ (\ )
|
||||
|
||||
The motion of the shape being queried for.
|
||||
|
||||
@@ -168,8 +168,8 @@ The motion of the shape being queried for.
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_shape** **(** :ref:`Resource<class_Resource>` value **)**
|
||||
- :ref:`Resource<class_Resource>` **get_shape** **(** **)**
|
||||
- |void| **set_shape**\ (\ value\: :ref:`Resource<class_Resource>`\ )
|
||||
- :ref:`Resource<class_Resource>` **get_shape**\ (\ )
|
||||
|
||||
The :ref:`Shape3D<class_Shape3D>` that will be used for collision/intersection queries. This stores the actual reference which avoids the shape to be released while being used for queries, so always prefer using this over :ref:`shape_rid<class_PhysicsShapeQueryParameters3D_property_shape_rid>`.
|
||||
|
||||
@@ -185,8 +185,8 @@ The :ref:`Shape3D<class_Shape3D>` that will be used for collision/intersection q
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_shape_rid** **(** :ref:`RID<class_RID>` value **)**
|
||||
- :ref:`RID<class_RID>` **get_shape_rid** **(** **)**
|
||||
- |void| **set_shape_rid**\ (\ value\: :ref:`RID<class_RID>`\ )
|
||||
- :ref:`RID<class_RID>` **get_shape_rid**\ (\ )
|
||||
|
||||
The queried shape's :ref:`RID<class_RID>` that will be used for collision/intersection queries. Use this over :ref:`shape<class_PhysicsShapeQueryParameters3D_property_shape>` if you want to optimize for performance using the Servers API:
|
||||
|
||||
@@ -235,8 +235,8 @@ The queried shape's :ref:`RID<class_RID>` that will be used for collision/inters
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_transform** **(** :ref:`Transform3D<class_Transform3D>` value **)**
|
||||
- :ref:`Transform3D<class_Transform3D>` **get_transform** **(** **)**
|
||||
- |void| **set_transform**\ (\ value\: :ref:`Transform3D<class_Transform3D>`\ )
|
||||
- :ref:`Transform3D<class_Transform3D>` **get_transform**\ (\ )
|
||||
|
||||
The queried shape's transform matrix.
|
||||
|
||||
@@ -247,3 +247,4 @@ The queried shape's transform matrix.
|
||||
.. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
|
||||
.. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
|
||||
.. |void| replace:: :abbr:`void (No return value.)`
|
||||
|
||||
Reference in New Issue
Block a user