class_collisionobject3d.rst 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/CollisionObject3D.xml.
  6. .. _class_CollisionObject3D:
  7. CollisionObject3D
  8. =================
  9. **Inherits:** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`Area3D<class_Area3D>`, :ref:`PhysicsBody3D<class_PhysicsBody3D>`
  11. Base node for collision objects.
  12. Description
  13. -----------
  14. CollisionObject3D is the base class for physics objects. It can hold any number of collision :ref:`Shape3D<class_Shape3D>`\ s. Each shape must be assigned to a *shape owner*. The CollisionObject3D can have any number of shape owners. Shape owners are not nodes and do not appear in the editor, but are accessible through code using the ``shape_owner_*`` methods.
  15. Properties
  16. ----------
  17. +--------------------------------------------------------+--------------------------------------------------------------------------------------+-----------+
  18. | :ref:`int<class_int>` | :ref:`collision_layer<class_CollisionObject3D_property_collision_layer>` | ``1`` |
  19. +--------------------------------------------------------+--------------------------------------------------------------------------------------+-----------+
  20. | :ref:`int<class_int>` | :ref:`collision_mask<class_CollisionObject3D_property_collision_mask>` | ``1`` |
  21. +--------------------------------------------------------+--------------------------------------------------------------------------------------+-----------+
  22. | :ref:`DisableMode<enum_CollisionObject3D_DisableMode>` | :ref:`disable_mode<class_CollisionObject3D_property_disable_mode>` | ``0`` |
  23. +--------------------------------------------------------+--------------------------------------------------------------------------------------+-----------+
  24. | :ref:`bool<class_bool>` | :ref:`input_capture_on_drag<class_CollisionObject3D_property_input_capture_on_drag>` | ``false`` |
  25. +--------------------------------------------------------+--------------------------------------------------------------------------------------+-----------+
  26. | :ref:`bool<class_bool>` | :ref:`input_ray_pickable<class_CollisionObject3D_property_input_ray_pickable>` | ``true`` |
  27. +--------------------------------------------------------+--------------------------------------------------------------------------------------+-----------+
  28. Methods
  29. -------
  30. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`_input_event<class_CollisionObject3D_method__input_event>` **(** :ref:`Camera3D<class_Camera3D>` camera, :ref:`InputEvent<class_InputEvent>` event, :ref:`Vector3<class_Vector3>` position, :ref:`Vector3<class_Vector3>` normal, :ref:`int<class_int>` shape_idx **)** |virtual| |
  32. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`int<class_int>` | :ref:`create_shape_owner<class_CollisionObject3D_method_create_shape_owner>` **(** :ref:`Object<class_Object>` owner **)** |
  34. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`bool<class_bool>` | :ref:`get_collision_layer_value<class_CollisionObject3D_method_get_collision_layer_value>` **(** :ref:`int<class_int>` layer_number **)** |const| |
  36. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`bool<class_bool>` | :ref:`get_collision_mask_value<class_CollisionObject3D_method_get_collision_mask_value>` **(** :ref:`int<class_int>` layer_number **)** |const| |
  38. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`RID<class_RID>` | :ref:`get_rid<class_CollisionObject3D_method_get_rid>` **(** **)** |const| |
  40. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`Array<class_Array>` | :ref:`get_shape_owners<class_CollisionObject3D_method_get_shape_owners>` **(** **)** |
  42. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`bool<class_bool>` | :ref:`is_shape_owner_disabled<class_CollisionObject3D_method_is_shape_owner_disabled>` **(** :ref:`int<class_int>` owner_id **)** |const| |
  44. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | void | :ref:`remove_shape_owner<class_CollisionObject3D_method_remove_shape_owner>` **(** :ref:`int<class_int>` owner_id **)** |
  46. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | void | :ref:`set_collision_layer_value<class_CollisionObject3D_method_set_collision_layer_value>` **(** :ref:`int<class_int>` layer_number, :ref:`bool<class_bool>` value **)** |
  48. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | void | :ref:`set_collision_mask_value<class_CollisionObject3D_method_set_collision_mask_value>` **(** :ref:`int<class_int>` layer_number, :ref:`bool<class_bool>` value **)** |
  50. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`int<class_int>` | :ref:`shape_find_owner<class_CollisionObject3D_method_shape_find_owner>` **(** :ref:`int<class_int>` shape_index **)** |const| |
  52. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | void | :ref:`shape_owner_add_shape<class_CollisionObject3D_method_shape_owner_add_shape>` **(** :ref:`int<class_int>` owner_id, :ref:`Shape3D<class_Shape3D>` shape **)** |
  54. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | void | :ref:`shape_owner_clear_shapes<class_CollisionObject3D_method_shape_owner_clear_shapes>` **(** :ref:`int<class_int>` owner_id **)** |
  56. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`Object<class_Object>` | :ref:`shape_owner_get_owner<class_CollisionObject3D_method_shape_owner_get_owner>` **(** :ref:`int<class_int>` owner_id **)** |const| |
  58. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`Shape3D<class_Shape3D>` | :ref:`shape_owner_get_shape<class_CollisionObject3D_method_shape_owner_get_shape>` **(** :ref:`int<class_int>` owner_id, :ref:`int<class_int>` shape_id **)** |const| |
  60. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`int<class_int>` | :ref:`shape_owner_get_shape_count<class_CollisionObject3D_method_shape_owner_get_shape_count>` **(** :ref:`int<class_int>` owner_id **)** |const| |
  62. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | :ref:`int<class_int>` | :ref:`shape_owner_get_shape_index<class_CollisionObject3D_method_shape_owner_get_shape_index>` **(** :ref:`int<class_int>` owner_id, :ref:`int<class_int>` shape_id **)** |const| |
  64. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | :ref:`Transform3D<class_Transform3D>` | :ref:`shape_owner_get_transform<class_CollisionObject3D_method_shape_owner_get_transform>` **(** :ref:`int<class_int>` owner_id **)** |const| |
  66. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | void | :ref:`shape_owner_remove_shape<class_CollisionObject3D_method_shape_owner_remove_shape>` **(** :ref:`int<class_int>` owner_id, :ref:`int<class_int>` shape_id **)** |
  68. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | void | :ref:`shape_owner_set_disabled<class_CollisionObject3D_method_shape_owner_set_disabled>` **(** :ref:`int<class_int>` owner_id, :ref:`bool<class_bool>` disabled **)** |
  70. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | void | :ref:`shape_owner_set_transform<class_CollisionObject3D_method_shape_owner_set_transform>` **(** :ref:`int<class_int>` owner_id, :ref:`Transform3D<class_Transform3D>` transform **)** |
  72. +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. Signals
  74. -------
  75. .. _class_CollisionObject3D_signal_input_event:
  76. - **input_event** **(** :ref:`Node<class_Node>` camera, :ref:`InputEvent<class_InputEvent>` event, :ref:`Vector3<class_Vector3>` position, :ref:`Vector3<class_Vector3>` normal, :ref:`int<class_int>` shape_idx **)**
  77. Emitted when the object receives an unhandled :ref:`InputEvent<class_InputEvent>`. ``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.
  78. ----
  79. .. _class_CollisionObject3D_signal_mouse_entered:
  80. - **mouse_entered** **(** **)**
  81. Emitted when the mouse pointer enters any of this object's shapes.
  82. ----
  83. .. _class_CollisionObject3D_signal_mouse_exited:
  84. - **mouse_exited** **(** **)**
  85. Emitted when the mouse pointer exits all this object's shapes.
  86. Enumerations
  87. ------------
  88. .. _enum_CollisionObject3D_DisableMode:
  89. .. _class_CollisionObject3D_constant_DISABLE_MODE_REMOVE:
  90. .. _class_CollisionObject3D_constant_DISABLE_MODE_MAKE_STATIC:
  91. .. _class_CollisionObject3D_constant_DISABLE_MODE_KEEP_ACTIVE:
  92. enum **DisableMode**:
  93. - **DISABLE_MODE_REMOVE** = **0** --- When :ref:`Node.process_mode<class_Node_property_process_mode>` is set to :ref:`Node.PROCESS_MODE_DISABLED<class_Node_constant_PROCESS_MODE_DISABLED>`, remove from the physics simulation to stop all physics interactions with this ``CollisionObject3D``.
  94. Automatically re-added to the physics simulation when the :ref:`Node<class_Node>` is processed again.
  95. - **DISABLE_MODE_MAKE_STATIC** = **1** --- When :ref:`Node.process_mode<class_Node_property_process_mode>` is set to :ref:`Node.PROCESS_MODE_DISABLED<class_Node_constant_PROCESS_MODE_DISABLED>`, make the body static. Doesn't affect :ref:`Area2D<class_Area2D>`. :ref:`PhysicsBody3D<class_PhysicsBody3D>` can't be affected by forces or other bodies while static.
  96. Automatically set :ref:`PhysicsBody3D<class_PhysicsBody3D>` back to its original mode when the :ref:`Node<class_Node>` is processed again.
  97. - **DISABLE_MODE_KEEP_ACTIVE** = **2** --- When :ref:`Node.process_mode<class_Node_property_process_mode>` is set to :ref:`Node.PROCESS_MODE_DISABLED<class_Node_constant_PROCESS_MODE_DISABLED>`, do not affect the physics simulation.
  98. Property Descriptions
  99. ---------------------
  100. .. _class_CollisionObject3D_property_collision_layer:
  101. - :ref:`int<class_int>` **collision_layer**
  102. +-----------+----------------------------+
  103. | *Default* | ``1`` |
  104. +-----------+----------------------------+
  105. | *Setter* | set_collision_layer(value) |
  106. +-----------+----------------------------+
  107. | *Getter* | get_collision_layer() |
  108. +-----------+----------------------------+
  109. The physics layers this CollisionObject3D **is in**. Collision objects can exist in one or more of 32 different layers. See also :ref:`collision_mask<class_CollisionObject3D_property_collision_mask>`.
  110. \ **Note:** Object A can detect a contact with object B only if object B is in any of the layers that object A scans. See `Collision layers and masks <../tutorials/physics/physics_introduction.html#collision-layers-and-masks>`__ in the documentation for more information.
  111. ----
  112. .. _class_CollisionObject3D_property_collision_mask:
  113. - :ref:`int<class_int>` **collision_mask**
  114. +-----------+---------------------------+
  115. | *Default* | ``1`` |
  116. +-----------+---------------------------+
  117. | *Setter* | set_collision_mask(value) |
  118. +-----------+---------------------------+
  119. | *Getter* | get_collision_mask() |
  120. +-----------+---------------------------+
  121. The physics layers this CollisionObject3D **scans**. Collision objects can scan one or more of 32 different layers. See also :ref:`collision_layer<class_CollisionObject3D_property_collision_layer>`.
  122. \ **Note:** Object A can detect a contact with object B only if object B is in any of the layers that object A scans. See `Collision layers and masks <../tutorials/physics/physics_introduction.html#collision-layers-and-masks>`__ in the documentation for more information.
  123. ----
  124. .. _class_CollisionObject3D_property_disable_mode:
  125. - :ref:`DisableMode<enum_CollisionObject3D_DisableMode>` **disable_mode**
  126. +-----------+-------------------------+
  127. | *Default* | ``0`` |
  128. +-----------+-------------------------+
  129. | *Setter* | set_disable_mode(value) |
  130. +-----------+-------------------------+
  131. | *Getter* | get_disable_mode() |
  132. +-----------+-------------------------+
  133. Defines the behavior in physics when :ref:`Node.process_mode<class_Node_property_process_mode>` is set to :ref:`Node.PROCESS_MODE_DISABLED<class_Node_constant_PROCESS_MODE_DISABLED>`. See :ref:`DisableMode<enum_CollisionObject3D_DisableMode>` for more details about the different modes.
  134. ----
  135. .. _class_CollisionObject3D_property_input_capture_on_drag:
  136. - :ref:`bool<class_bool>` **input_capture_on_drag**
  137. +-----------+----------------------------------+
  138. | *Default* | ``false`` |
  139. +-----------+----------------------------------+
  140. | *Setter* | set_capture_input_on_drag(value) |
  141. +-----------+----------------------------------+
  142. | *Getter* | get_capture_input_on_drag() |
  143. +-----------+----------------------------------+
  144. If ``true``, the ``CollisionObject3D`` will continue to receive input events as the mouse is dragged across its shapes.
  145. ----
  146. .. _class_CollisionObject3D_property_input_ray_pickable:
  147. - :ref:`bool<class_bool>` **input_ray_pickable**
  148. +-----------+-------------------------+
  149. | *Default* | ``true`` |
  150. +-----------+-------------------------+
  151. | *Setter* | set_ray_pickable(value) |
  152. +-----------+-------------------------+
  153. | *Getter* | is_ray_pickable() |
  154. +-----------+-------------------------+
  155. If ``true``, this object is pickable. A pickable object can detect the mouse pointer entering/leaving, and if the mouse is inside it, report input events. Requires at least one :ref:`collision_layer<class_CollisionObject3D_property_collision_layer>` bit to be set.
  156. Method Descriptions
  157. -------------------
  158. .. _class_CollisionObject3D_method__input_event:
  159. - void **_input_event** **(** :ref:`Camera3D<class_Camera3D>` camera, :ref:`InputEvent<class_InputEvent>` event, :ref:`Vector3<class_Vector3>` position, :ref:`Vector3<class_Vector3>` normal, :ref:`int<class_int>` shape_idx **)** |virtual|
  160. Receives unhandled :ref:`InputEvent<class_InputEvent>`\ s. ``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.
  161. ----
  162. .. _class_CollisionObject3D_method_create_shape_owner:
  163. - :ref:`int<class_int>` **create_shape_owner** **(** :ref:`Object<class_Object>` owner **)**
  164. Creates a new shape owner for the given object. Returns ``owner_id`` of the new owner for future reference.
  165. ----
  166. .. _class_CollisionObject3D_method_get_collision_layer_value:
  167. - :ref:`bool<class_bool>` **get_collision_layer_value** **(** :ref:`int<class_int>` layer_number **)** |const|
  168. 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.
  169. ----
  170. .. _class_CollisionObject3D_method_get_collision_mask_value:
  171. - :ref:`bool<class_bool>` **get_collision_mask_value** **(** :ref:`int<class_int>` layer_number **)** |const|
  172. 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.
  173. ----
  174. .. _class_CollisionObject3D_method_get_rid:
  175. - :ref:`RID<class_RID>` **get_rid** **(** **)** |const|
  176. Returns the object's :ref:`RID<class_RID>`.
  177. ----
  178. .. _class_CollisionObject3D_method_get_shape_owners:
  179. - :ref:`Array<class_Array>` **get_shape_owners** **(** **)**
  180. 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.
  181. ----
  182. .. _class_CollisionObject3D_method_is_shape_owner_disabled:
  183. - :ref:`bool<class_bool>` **is_shape_owner_disabled** **(** :ref:`int<class_int>` owner_id **)** |const|
  184. If ``true``, the shape owner and its shapes are disabled.
  185. ----
  186. .. _class_CollisionObject3D_method_remove_shape_owner:
  187. - void **remove_shape_owner** **(** :ref:`int<class_int>` owner_id **)**
  188. Removes the given shape owner.
  189. ----
  190. .. _class_CollisionObject3D_method_set_collision_layer_value:
  191. - void **set_collision_layer_value** **(** :ref:`int<class_int>` layer_number, :ref:`bool<class_bool>` value **)**
  192. 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.
  193. ----
  194. .. _class_CollisionObject3D_method_set_collision_mask_value:
  195. - void **set_collision_mask_value** **(** :ref:`int<class_int>` layer_number, :ref:`bool<class_bool>` value **)**
  196. 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.
  197. ----
  198. .. _class_CollisionObject3D_method_shape_find_owner:
  199. - :ref:`int<class_int>` **shape_find_owner** **(** :ref:`int<class_int>` shape_index **)** |const|
  200. Returns the ``owner_id`` of the given shape.
  201. ----
  202. .. _class_CollisionObject3D_method_shape_owner_add_shape:
  203. - void **shape_owner_add_shape** **(** :ref:`int<class_int>` owner_id, :ref:`Shape3D<class_Shape3D>` shape **)**
  204. Adds a :ref:`Shape3D<class_Shape3D>` to the shape owner.
  205. ----
  206. .. _class_CollisionObject3D_method_shape_owner_clear_shapes:
  207. - void **shape_owner_clear_shapes** **(** :ref:`int<class_int>` owner_id **)**
  208. Removes all shapes from the shape owner.
  209. ----
  210. .. _class_CollisionObject3D_method_shape_owner_get_owner:
  211. - :ref:`Object<class_Object>` **shape_owner_get_owner** **(** :ref:`int<class_int>` owner_id **)** |const|
  212. Returns the parent object of the given shape owner.
  213. ----
  214. .. _class_CollisionObject3D_method_shape_owner_get_shape:
  215. - :ref:`Shape3D<class_Shape3D>` **shape_owner_get_shape** **(** :ref:`int<class_int>` owner_id, :ref:`int<class_int>` shape_id **)** |const|
  216. Returns the :ref:`Shape3D<class_Shape3D>` with the given id from the given shape owner.
  217. ----
  218. .. _class_CollisionObject3D_method_shape_owner_get_shape_count:
  219. - :ref:`int<class_int>` **shape_owner_get_shape_count** **(** :ref:`int<class_int>` owner_id **)** |const|
  220. Returns the number of shapes the given shape owner contains.
  221. ----
  222. .. _class_CollisionObject3D_method_shape_owner_get_shape_index:
  223. - :ref:`int<class_int>` **shape_owner_get_shape_index** **(** :ref:`int<class_int>` owner_id, :ref:`int<class_int>` shape_id **)** |const|
  224. Returns the child index of the :ref:`Shape3D<class_Shape3D>` with the given id from the given shape owner.
  225. ----
  226. .. _class_CollisionObject3D_method_shape_owner_get_transform:
  227. - :ref:`Transform3D<class_Transform3D>` **shape_owner_get_transform** **(** :ref:`int<class_int>` owner_id **)** |const|
  228. Returns the shape owner's :ref:`Transform3D<class_Transform3D>`.
  229. ----
  230. .. _class_CollisionObject3D_method_shape_owner_remove_shape:
  231. - void **shape_owner_remove_shape** **(** :ref:`int<class_int>` owner_id, :ref:`int<class_int>` shape_id **)**
  232. Removes a shape from the given shape owner.
  233. ----
  234. .. _class_CollisionObject3D_method_shape_owner_set_disabled:
  235. - void **shape_owner_set_disabled** **(** :ref:`int<class_int>` owner_id, :ref:`bool<class_bool>` disabled **)**
  236. If ``true``, disables the given shape owner.
  237. ----
  238. .. _class_CollisionObject3D_method_shape_owner_set_transform:
  239. - void **shape_owner_set_transform** **(** :ref:`int<class_int>` owner_id, :ref:`Transform3D<class_Transform3D>` transform **)**
  240. Sets the :ref:`Transform3D<class_Transform3D>` of the given shape owner.
  241. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  242. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  243. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  244. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  245. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  246. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`