class_node3d.rst 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007
  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/Node3D.xml.
  6. .. _class_Node3D:
  7. Node3D
  8. ======
  9. **Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`AudioListener3D<class_AudioListener3D>`, :ref:`AudioStreamPlayer3D<class_AudioStreamPlayer3D>`, :ref:`BoneAttachment3D<class_BoneAttachment3D>`, :ref:`Camera3D<class_Camera3D>`, :ref:`CollisionObject3D<class_CollisionObject3D>`, :ref:`CollisionPolygon3D<class_CollisionPolygon3D>`, :ref:`CollisionShape3D<class_CollisionShape3D>`, :ref:`GridMap<class_GridMap>`, :ref:`ImporterMeshInstance3D<class_ImporterMeshInstance3D>`, :ref:`Joint3D<class_Joint3D>`, :ref:`LightmapProbe<class_LightmapProbe>`, :ref:`Marker3D<class_Marker3D>`, :ref:`NavigationLink3D<class_NavigationLink3D>`, :ref:`NavigationRegion3D<class_NavigationRegion3D>`, :ref:`OccluderInstance3D<class_OccluderInstance3D>`, :ref:`OpenXRHand<class_OpenXRHand>`, :ref:`Path3D<class_Path3D>`, :ref:`PathFollow3D<class_PathFollow3D>`, :ref:`RayCast3D<class_RayCast3D>`, :ref:`RemoteTransform3D<class_RemoteTransform3D>`, :ref:`ShapeCast3D<class_ShapeCast3D>`, :ref:`Skeleton3D<class_Skeleton3D>`, :ref:`SpringArm3D<class_SpringArm3D>`, :ref:`VehicleWheel3D<class_VehicleWheel3D>`, :ref:`VisualInstance3D<class_VisualInstance3D>`, :ref:`XRNode3D<class_XRNode3D>`, :ref:`XROrigin3D<class_XROrigin3D>`
  11. Most basic 3D game object, parent of all 3D-related nodes.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Most basic 3D game object, with a 3D :ref:`Transform3D<class_Transform3D>` and visibility settings. All other 3D game objects inherit from Node3D. Use **Node3D** as a parent node to move, scale, rotate and show/hide children in a 3D project.
  16. Affine operations (rotate, scale, translate) happen in parent's local coordinate system, unless the **Node3D** object is set as top-level. Affine operations in this coordinate system correspond to direct affine operations on the **Node3D**'s transform. The word local below refers to this coordinate system. The coordinate system that is attached to the **Node3D** object itself is referred to as object-local coordinate system.
  17. \ **Note:** Unless otherwise specified, all methods that have angle parameters must have angles specified as *radians*. To convert degrees to radians, use :ref:`@GlobalScope.deg_to_rad<class_@GlobalScope_method_deg_to_rad>`.
  18. .. rst-class:: classref-introduction-group
  19. Tutorials
  20. ---------
  21. - :doc:`Introduction to 3D <../tutorials/3d/introduction_to_3d>`
  22. - `All 3D Demos <https://github.com/godotengine/godot-demo-projects/tree/master/3d>`__
  23. .. rst-class:: classref-reftable-group
  24. Properties
  25. ----------
  26. .. table::
  27. :widths: auto
  28. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  29. | :ref:`Basis<class_Basis>` | :ref:`basis<class_Node3D_property_basis>` | |
  30. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  31. | :ref:`Vector3<class_Vector3>` | :ref:`global_position<class_Node3D_property_global_position>` | |
  32. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  33. | :ref:`Vector3<class_Vector3>` | :ref:`global_rotation<class_Node3D_property_global_rotation>` | |
  34. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  35. | :ref:`Vector3<class_Vector3>` | :ref:`global_rotation_degrees<class_Node3D_property_global_rotation_degrees>` | |
  36. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  37. | :ref:`Transform3D<class_Transform3D>` | :ref:`global_transform<class_Node3D_property_global_transform>` | |
  38. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  39. | :ref:`Vector3<class_Vector3>` | :ref:`position<class_Node3D_property_position>` | ``Vector3(0, 0, 0)`` |
  40. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  41. | :ref:`Quaternion<class_Quaternion>` | :ref:`quaternion<class_Node3D_property_quaternion>` | |
  42. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  43. | :ref:`Vector3<class_Vector3>` | :ref:`rotation<class_Node3D_property_rotation>` | ``Vector3(0, 0, 0)`` |
  44. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  45. | :ref:`Vector3<class_Vector3>` | :ref:`rotation_degrees<class_Node3D_property_rotation_degrees>` | |
  46. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  47. | :ref:`RotationEditMode<enum_Node3D_RotationEditMode>` | :ref:`rotation_edit_mode<class_Node3D_property_rotation_edit_mode>` | ``0`` |
  48. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  49. | :ref:`EulerOrder<enum_@GlobalScope_EulerOrder>` | :ref:`rotation_order<class_Node3D_property_rotation_order>` | ``2`` |
  50. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  51. | :ref:`Vector3<class_Vector3>` | :ref:`scale<class_Node3D_property_scale>` | ``Vector3(1, 1, 1)`` |
  52. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  53. | :ref:`bool<class_bool>` | :ref:`top_level<class_Node3D_property_top_level>` | ``false`` |
  54. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  55. | :ref:`Transform3D<class_Transform3D>` | :ref:`transform<class_Node3D_property_transform>` | ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)`` |
  56. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  57. | :ref:`NodePath<class_NodePath>` | :ref:`visibility_parent<class_Node3D_property_visibility_parent>` | ``NodePath("")`` |
  58. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  59. | :ref:`bool<class_bool>` | :ref:`visible<class_Node3D_property_visible>` | ``true`` |
  60. +-------------------------------------------------------+-------------------------------------------------------------------------------+-----------------------------------------------------+
  61. .. rst-class:: classref-reftable-group
  62. Methods
  63. -------
  64. .. table::
  65. :widths: auto
  66. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | void | :ref:`add_gizmo<class_Node3D_method_add_gizmo>` **(** :ref:`Node3DGizmo<class_Node3DGizmo>` gizmo **)** |
  68. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | void | :ref:`clear_gizmos<class_Node3D_method_clear_gizmos>` **(** **)** |
  70. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | void | :ref:`clear_subgizmo_selection<class_Node3D_method_clear_subgizmo_selection>` **(** **)** |
  72. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | void | :ref:`force_update_transform<class_Node3D_method_force_update_transform>` **(** **)** |
  74. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | :ref:`Node3DGizmo[]<class_Node3DGizmo>` | :ref:`get_gizmos<class_Node3D_method_get_gizmos>` **(** **)** |const| |
  76. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | :ref:`Node3D<class_Node3D>` | :ref:`get_parent_node_3d<class_Node3D_method_get_parent_node_3d>` **(** **)** |const| |
  78. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | :ref:`World3D<class_World3D>` | :ref:`get_world_3d<class_Node3D_method_get_world_3d>` **(** **)** |const| |
  80. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | void | :ref:`global_rotate<class_Node3D_method_global_rotate>` **(** :ref:`Vector3<class_Vector3>` axis, :ref:`float<class_float>` angle **)** |
  82. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | void | :ref:`global_scale<class_Node3D_method_global_scale>` **(** :ref:`Vector3<class_Vector3>` scale **)** |
  84. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  85. | void | :ref:`global_translate<class_Node3D_method_global_translate>` **(** :ref:`Vector3<class_Vector3>` offset **)** |
  86. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  87. | void | :ref:`hide<class_Node3D_method_hide>` **(** **)** |
  88. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  89. | :ref:`bool<class_bool>` | :ref:`is_local_transform_notification_enabled<class_Node3D_method_is_local_transform_notification_enabled>` **(** **)** |const| |
  90. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  91. | :ref:`bool<class_bool>` | :ref:`is_scale_disabled<class_Node3D_method_is_scale_disabled>` **(** **)** |const| |
  92. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  93. | :ref:`bool<class_bool>` | :ref:`is_transform_notification_enabled<class_Node3D_method_is_transform_notification_enabled>` **(** **)** |const| |
  94. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  95. | :ref:`bool<class_bool>` | :ref:`is_visible_in_tree<class_Node3D_method_is_visible_in_tree>` **(** **)** |const| |
  96. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  97. | void | :ref:`look_at<class_Node3D_method_look_at>` **(** :ref:`Vector3<class_Vector3>` target, :ref:`Vector3<class_Vector3>` up=Vector3(0, 1, 0) **)** |
  98. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  99. | void | :ref:`look_at_from_position<class_Node3D_method_look_at_from_position>` **(** :ref:`Vector3<class_Vector3>` position, :ref:`Vector3<class_Vector3>` target, :ref:`Vector3<class_Vector3>` up=Vector3(0, 1, 0) **)** |
  100. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  101. | void | :ref:`orthonormalize<class_Node3D_method_orthonormalize>` **(** **)** |
  102. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  103. | void | :ref:`rotate<class_Node3D_method_rotate>` **(** :ref:`Vector3<class_Vector3>` axis, :ref:`float<class_float>` angle **)** |
  104. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  105. | void | :ref:`rotate_object_local<class_Node3D_method_rotate_object_local>` **(** :ref:`Vector3<class_Vector3>` axis, :ref:`float<class_float>` angle **)** |
  106. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  107. | void | :ref:`rotate_x<class_Node3D_method_rotate_x>` **(** :ref:`float<class_float>` angle **)** |
  108. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  109. | void | :ref:`rotate_y<class_Node3D_method_rotate_y>` **(** :ref:`float<class_float>` angle **)** |
  110. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  111. | void | :ref:`rotate_z<class_Node3D_method_rotate_z>` **(** :ref:`float<class_float>` angle **)** |
  112. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  113. | void | :ref:`scale_object_local<class_Node3D_method_scale_object_local>` **(** :ref:`Vector3<class_Vector3>` scale **)** |
  114. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  115. | void | :ref:`set_disable_scale<class_Node3D_method_set_disable_scale>` **(** :ref:`bool<class_bool>` disable **)** |
  116. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  117. | void | :ref:`set_identity<class_Node3D_method_set_identity>` **(** **)** |
  118. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  119. | void | :ref:`set_ignore_transform_notification<class_Node3D_method_set_ignore_transform_notification>` **(** :ref:`bool<class_bool>` enabled **)** |
  120. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  121. | void | :ref:`set_notify_local_transform<class_Node3D_method_set_notify_local_transform>` **(** :ref:`bool<class_bool>` enable **)** |
  122. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  123. | void | :ref:`set_notify_transform<class_Node3D_method_set_notify_transform>` **(** :ref:`bool<class_bool>` enable **)** |
  124. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  125. | void | :ref:`set_subgizmo_selection<class_Node3D_method_set_subgizmo_selection>` **(** :ref:`Node3DGizmo<class_Node3DGizmo>` gizmo, :ref:`int<class_int>` id, :ref:`Transform3D<class_Transform3D>` transform **)** |
  126. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  127. | void | :ref:`show<class_Node3D_method_show>` **(** **)** |
  128. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  129. | :ref:`Vector3<class_Vector3>` | :ref:`to_global<class_Node3D_method_to_global>` **(** :ref:`Vector3<class_Vector3>` local_point **)** |const| |
  130. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  131. | :ref:`Vector3<class_Vector3>` | :ref:`to_local<class_Node3D_method_to_local>` **(** :ref:`Vector3<class_Vector3>` global_point **)** |const| |
  132. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  133. | void | :ref:`translate<class_Node3D_method_translate>` **(** :ref:`Vector3<class_Vector3>` offset **)** |
  134. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  135. | void | :ref:`translate_object_local<class_Node3D_method_translate_object_local>` **(** :ref:`Vector3<class_Vector3>` offset **)** |
  136. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  137. | void | :ref:`update_gizmos<class_Node3D_method_update_gizmos>` **(** **)** |
  138. +-----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  139. .. rst-class:: classref-section-separator
  140. ----
  141. .. rst-class:: classref-descriptions-group
  142. Signals
  143. -------
  144. .. _class_Node3D_signal_visibility_changed:
  145. .. rst-class:: classref-signal
  146. **visibility_changed** **(** **)**
  147. Emitted when node visibility changes.
  148. .. rst-class:: classref-section-separator
  149. ----
  150. .. rst-class:: classref-descriptions-group
  151. Enumerations
  152. ------------
  153. .. _enum_Node3D_RotationEditMode:
  154. .. rst-class:: classref-enumeration
  155. enum **RotationEditMode**:
  156. .. _class_Node3D_constant_ROTATION_EDIT_MODE_EULER:
  157. .. rst-class:: classref-enumeration-constant
  158. :ref:`RotationEditMode<enum_Node3D_RotationEditMode>` **ROTATION_EDIT_MODE_EULER** = ``0``
  159. .. _class_Node3D_constant_ROTATION_EDIT_MODE_QUATERNION:
  160. .. rst-class:: classref-enumeration-constant
  161. :ref:`RotationEditMode<enum_Node3D_RotationEditMode>` **ROTATION_EDIT_MODE_QUATERNION** = ``1``
  162. .. _class_Node3D_constant_ROTATION_EDIT_MODE_BASIS:
  163. .. rst-class:: classref-enumeration-constant
  164. :ref:`RotationEditMode<enum_Node3D_RotationEditMode>` **ROTATION_EDIT_MODE_BASIS** = ``2``
  165. .. rst-class:: classref-section-separator
  166. ----
  167. .. rst-class:: classref-descriptions-group
  168. Constants
  169. ---------
  170. .. _class_Node3D_constant_NOTIFICATION_TRANSFORM_CHANGED:
  171. .. rst-class:: classref-constant
  172. **NOTIFICATION_TRANSFORM_CHANGED** = ``2000``
  173. Node3D nodes receives this notification when their global transform changes. This means that either the current or a parent node changed its transform.
  174. In order for :ref:`NOTIFICATION_TRANSFORM_CHANGED<class_Node3D_constant_NOTIFICATION_TRANSFORM_CHANGED>` to work, users first need to ask for it, with :ref:`set_notify_transform<class_Node3D_method_set_notify_transform>`. The notification is also sent if the node is in the editor context and it has at least one valid gizmo.
  175. .. _class_Node3D_constant_NOTIFICATION_ENTER_WORLD:
  176. .. rst-class:: classref-constant
  177. **NOTIFICATION_ENTER_WORLD** = ``41``
  178. Node3D nodes receives this notification when they are registered to new :ref:`World3D<class_World3D>` resource.
  179. .. _class_Node3D_constant_NOTIFICATION_EXIT_WORLD:
  180. .. rst-class:: classref-constant
  181. **NOTIFICATION_EXIT_WORLD** = ``42``
  182. Node3D nodes receives this notification when they are unregistered from current :ref:`World3D<class_World3D>` resource.
  183. .. _class_Node3D_constant_NOTIFICATION_VISIBILITY_CHANGED:
  184. .. rst-class:: classref-constant
  185. **NOTIFICATION_VISIBILITY_CHANGED** = ``43``
  186. Node3D nodes receives this notification when their visibility changes.
  187. .. _class_Node3D_constant_NOTIFICATION_LOCAL_TRANSFORM_CHANGED:
  188. .. rst-class:: classref-constant
  189. **NOTIFICATION_LOCAL_TRANSFORM_CHANGED** = ``44``
  190. Node3D nodes receives this notification when their local transform changes. This is not received when the transform of a parent node is changed.
  191. In order for :ref:`NOTIFICATION_LOCAL_TRANSFORM_CHANGED<class_Node3D_constant_NOTIFICATION_LOCAL_TRANSFORM_CHANGED>` to work, users first need to ask for it, with :ref:`set_notify_local_transform<class_Node3D_method_set_notify_local_transform>`.
  192. .. rst-class:: classref-section-separator
  193. ----
  194. .. rst-class:: classref-descriptions-group
  195. Property Descriptions
  196. ---------------------
  197. .. _class_Node3D_property_basis:
  198. .. rst-class:: classref-property
  199. :ref:`Basis<class_Basis>` **basis**
  200. .. rst-class:: classref-property-setget
  201. - void **set_basis** **(** :ref:`Basis<class_Basis>` value **)**
  202. - :ref:`Basis<class_Basis>` **get_basis** **(** **)**
  203. Direct access to the 3x3 basis of the :ref:`Transform3D<class_Transform3D>` property.
  204. .. rst-class:: classref-item-separator
  205. ----
  206. .. _class_Node3D_property_global_position:
  207. .. rst-class:: classref-property
  208. :ref:`Vector3<class_Vector3>` **global_position**
  209. .. rst-class:: classref-property-setget
  210. - void **set_global_position** **(** :ref:`Vector3<class_Vector3>` value **)**
  211. - :ref:`Vector3<class_Vector3>` **get_global_position** **(** **)**
  212. Global position of this node. This is equivalent to ``global_transform.origin``.
  213. .. rst-class:: classref-item-separator
  214. ----
  215. .. _class_Node3D_property_global_rotation:
  216. .. rst-class:: classref-property
  217. :ref:`Vector3<class_Vector3>` **global_rotation**
  218. .. rst-class:: classref-property-setget
  219. - void **set_global_rotation** **(** :ref:`Vector3<class_Vector3>` value **)**
  220. - :ref:`Vector3<class_Vector3>` **get_global_rotation** **(** **)**
  221. Rotation part of the global transformation in radians, specified in terms of YXZ-Euler angles in the format (X angle, Y angle, Z angle).
  222. \ **Note:** In the mathematical sense, rotation is a matrix and not a vector. The three Euler angles, which are the three independent parameters of the Euler-angle parametrization of the rotation matrix, are stored in a :ref:`Vector3<class_Vector3>` data structure not because the rotation is a vector, but only because :ref:`Vector3<class_Vector3>` exists as a convenient data-structure to store 3 floating-point numbers. Therefore, applying affine operations on the rotation "vector" is not meaningful.
  223. .. rst-class:: classref-item-separator
  224. ----
  225. .. _class_Node3D_property_global_rotation_degrees:
  226. .. rst-class:: classref-property
  227. :ref:`Vector3<class_Vector3>` **global_rotation_degrees**
  228. .. rst-class:: classref-property-setget
  229. - void **set_global_rotation_degrees** **(** :ref:`Vector3<class_Vector3>` value **)**
  230. - :ref:`Vector3<class_Vector3>` **get_global_rotation_degrees** **(** **)**
  231. Helper property to access :ref:`global_rotation<class_Node3D_property_global_rotation>` in degrees instead of radians.
  232. .. rst-class:: classref-item-separator
  233. ----
  234. .. _class_Node3D_property_global_transform:
  235. .. rst-class:: classref-property
  236. :ref:`Transform3D<class_Transform3D>` **global_transform**
  237. .. rst-class:: classref-property-setget
  238. - void **set_global_transform** **(** :ref:`Transform3D<class_Transform3D>` value **)**
  239. - :ref:`Transform3D<class_Transform3D>` **get_global_transform** **(** **)**
  240. World3D space (global) :ref:`Transform3D<class_Transform3D>` of this node.
  241. .. rst-class:: classref-item-separator
  242. ----
  243. .. _class_Node3D_property_position:
  244. .. rst-class:: classref-property
  245. :ref:`Vector3<class_Vector3>` **position** = ``Vector3(0, 0, 0)``
  246. .. rst-class:: classref-property-setget
  247. - void **set_position** **(** :ref:`Vector3<class_Vector3>` value **)**
  248. - :ref:`Vector3<class_Vector3>` **get_position** **(** **)**
  249. Local position or translation of this node relative to the parent. This is equivalent to ``transform.origin``.
  250. .. rst-class:: classref-item-separator
  251. ----
  252. .. _class_Node3D_property_quaternion:
  253. .. rst-class:: classref-property
  254. :ref:`Quaternion<class_Quaternion>` **quaternion**
  255. .. rst-class:: classref-property-setget
  256. - void **set_quaternion** **(** :ref:`Quaternion<class_Quaternion>` value **)**
  257. - :ref:`Quaternion<class_Quaternion>` **get_quaternion** **(** **)**
  258. Access to the node rotation as a :ref:`Quaternion<class_Quaternion>`. This property is ideal for tweening complex rotations.
  259. .. rst-class:: classref-item-separator
  260. ----
  261. .. _class_Node3D_property_rotation:
  262. .. rst-class:: classref-property
  263. :ref:`Vector3<class_Vector3>` **rotation** = ``Vector3(0, 0, 0)``
  264. .. rst-class:: classref-property-setget
  265. - void **set_rotation** **(** :ref:`Vector3<class_Vector3>` value **)**
  266. - :ref:`Vector3<class_Vector3>` **get_rotation** **(** **)**
  267. Rotation part of the local transformation in radians, specified in terms of Euler angles. The angles construct a rotaton in the order specified by the :ref:`rotation_order<class_Node3D_property_rotation_order>` property.
  268. \ **Note:** In the mathematical sense, rotation is a matrix and not a vector. The three Euler angles, which are the three independent parameters of the Euler-angle parametrization of the rotation matrix, are stored in a :ref:`Vector3<class_Vector3>` data structure not because the rotation is a vector, but only because :ref:`Vector3<class_Vector3>` exists as a convenient data-structure to store 3 floating-point numbers. Therefore, applying affine operations on the rotation "vector" is not meaningful.
  269. .. rst-class:: classref-item-separator
  270. ----
  271. .. _class_Node3D_property_rotation_degrees:
  272. .. rst-class:: classref-property
  273. :ref:`Vector3<class_Vector3>` **rotation_degrees**
  274. .. rst-class:: classref-property-setget
  275. - void **set_rotation_degrees** **(** :ref:`Vector3<class_Vector3>` value **)**
  276. - :ref:`Vector3<class_Vector3>` **get_rotation_degrees** **(** **)**
  277. Helper property to access :ref:`rotation<class_Node3D_property_rotation>` in degrees instead of radians.
  278. .. rst-class:: classref-item-separator
  279. ----
  280. .. _class_Node3D_property_rotation_edit_mode:
  281. .. rst-class:: classref-property
  282. :ref:`RotationEditMode<enum_Node3D_RotationEditMode>` **rotation_edit_mode** = ``0``
  283. .. rst-class:: classref-property-setget
  284. - void **set_rotation_edit_mode** **(** :ref:`RotationEditMode<enum_Node3D_RotationEditMode>` value **)**
  285. - :ref:`RotationEditMode<enum_Node3D_RotationEditMode>` **get_rotation_edit_mode** **(** **)**
  286. Specify how rotation (and scale) will be presented in the editor.
  287. .. rst-class:: classref-item-separator
  288. ----
  289. .. _class_Node3D_property_rotation_order:
  290. .. rst-class:: classref-property
  291. :ref:`EulerOrder<enum_@GlobalScope_EulerOrder>` **rotation_order** = ``2``
  292. .. rst-class:: classref-property-setget
  293. - void **set_rotation_order** **(** :ref:`EulerOrder<enum_@GlobalScope_EulerOrder>` value **)**
  294. - :ref:`EulerOrder<enum_@GlobalScope_EulerOrder>` **get_rotation_order** **(** **)**
  295. Specify the axis rotation order of the :ref:`rotation<class_Node3D_property_rotation>` property. The final orientation is constructed by rotating the Euler angles in the order specified by this property.
  296. .. rst-class:: classref-item-separator
  297. ----
  298. .. _class_Node3D_property_scale:
  299. .. rst-class:: classref-property
  300. :ref:`Vector3<class_Vector3>` **scale** = ``Vector3(1, 1, 1)``
  301. .. rst-class:: classref-property-setget
  302. - void **set_scale** **(** :ref:`Vector3<class_Vector3>` value **)**
  303. - :ref:`Vector3<class_Vector3>` **get_scale** **(** **)**
  304. Scale part of the local transformation.
  305. \ **Note:** Mixed negative scales in 3D are not decomposable from the transformation matrix. Due to the way scale is represented with transformation matrices in Godot, the scale values will either be all positive or all negative.
  306. \ **Note:** Not all nodes are visually scaled by the :ref:`scale<class_Node3D_property_scale>` property. For example, :ref:`Light3D<class_Light3D>`\ s are not visually affected by :ref:`scale<class_Node3D_property_scale>`.
  307. .. rst-class:: classref-item-separator
  308. ----
  309. .. _class_Node3D_property_top_level:
  310. .. rst-class:: classref-property
  311. :ref:`bool<class_bool>` **top_level** = ``false``
  312. .. rst-class:: classref-property-setget
  313. - void **set_as_top_level** **(** :ref:`bool<class_bool>` value **)**
  314. - :ref:`bool<class_bool>` **is_set_as_top_level** **(** **)**
  315. If ``true``, the node will not inherit its transformations from its parent. Node transformations are only in global space.
  316. .. rst-class:: classref-item-separator
  317. ----
  318. .. _class_Node3D_property_transform:
  319. .. rst-class:: classref-property
  320. :ref:`Transform3D<class_Transform3D>` **transform** = ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)``
  321. .. rst-class:: classref-property-setget
  322. - void **set_transform** **(** :ref:`Transform3D<class_Transform3D>` value **)**
  323. - :ref:`Transform3D<class_Transform3D>` **get_transform** **(** **)**
  324. Local space :ref:`Transform3D<class_Transform3D>` of this node, with respect to the parent node.
  325. .. rst-class:: classref-item-separator
  326. ----
  327. .. _class_Node3D_property_visibility_parent:
  328. .. rst-class:: classref-property
  329. :ref:`NodePath<class_NodePath>` **visibility_parent** = ``NodePath("")``
  330. .. rst-class:: classref-property-setget
  331. - void **set_visibility_parent** **(** :ref:`NodePath<class_NodePath>` value **)**
  332. - :ref:`NodePath<class_NodePath>` **get_visibility_parent** **(** **)**
  333. Defines the visibility range parent for this node and its subtree. The visibility parent must be a GeometryInstance3D. Any visual instance will only be visible if the visibility parent (and all of its visibility ancestors) is hidden by being closer to the camera than its own :ref:`GeometryInstance3D.visibility_range_begin<class_GeometryInstance3D_property_visibility_range_begin>`. Nodes hidden via the :ref:`visible<class_Node3D_property_visible>` property are essentially removed from the visibility dependency tree, so dependent instances will not take the hidden node or its ancestors into account.
  334. .. rst-class:: classref-item-separator
  335. ----
  336. .. _class_Node3D_property_visible:
  337. .. rst-class:: classref-property
  338. :ref:`bool<class_bool>` **visible** = ``true``
  339. .. rst-class:: classref-property-setget
  340. - void **set_visible** **(** :ref:`bool<class_bool>` value **)**
  341. - :ref:`bool<class_bool>` **is_visible** **(** **)**
  342. If ``true``, this node is drawn. The node is only visible if all of its antecedents are visible as well (in other words, :ref:`is_visible_in_tree<class_Node3D_method_is_visible_in_tree>` must return ``true``).
  343. .. rst-class:: classref-section-separator
  344. ----
  345. .. rst-class:: classref-descriptions-group
  346. Method Descriptions
  347. -------------------
  348. .. _class_Node3D_method_add_gizmo:
  349. .. rst-class:: classref-method
  350. void **add_gizmo** **(** :ref:`Node3DGizmo<class_Node3DGizmo>` gizmo **)**
  351. Attach a gizmo to this ``Node3D``.
  352. .. rst-class:: classref-item-separator
  353. ----
  354. .. _class_Node3D_method_clear_gizmos:
  355. .. rst-class:: classref-method
  356. void **clear_gizmos** **(** **)**
  357. Clear all gizmos attached to this ``Node3D``.
  358. .. rst-class:: classref-item-separator
  359. ----
  360. .. _class_Node3D_method_clear_subgizmo_selection:
  361. .. rst-class:: classref-method
  362. void **clear_subgizmo_selection** **(** **)**
  363. Clears subgizmo selection for this node in the editor. Useful when subgizmo IDs become invalid after a property change.
  364. .. rst-class:: classref-item-separator
  365. ----
  366. .. _class_Node3D_method_force_update_transform:
  367. .. rst-class:: classref-method
  368. void **force_update_transform** **(** **)**
  369. Forces the transform to update. Transform changes in physics are not instant for performance reasons. Transforms are accumulated and then set. Use this if you need an up-to-date transform when doing physics operations.
  370. .. rst-class:: classref-item-separator
  371. ----
  372. .. _class_Node3D_method_get_gizmos:
  373. .. rst-class:: classref-method
  374. :ref:`Node3DGizmo[]<class_Node3DGizmo>` **get_gizmos** **(** **)** |const|
  375. Returns all the gizmos attached to this ``Node3D``.
  376. .. rst-class:: classref-item-separator
  377. ----
  378. .. _class_Node3D_method_get_parent_node_3d:
  379. .. rst-class:: classref-method
  380. :ref:`Node3D<class_Node3D>` **get_parent_node_3d** **(** **)** |const|
  381. Returns the parent **Node3D**, or an empty :ref:`Object<class_Object>` if no parent exists or parent is not of type **Node3D**.
  382. .. rst-class:: classref-item-separator
  383. ----
  384. .. _class_Node3D_method_get_world_3d:
  385. .. rst-class:: classref-method
  386. :ref:`World3D<class_World3D>` **get_world_3d** **(** **)** |const|
  387. Returns the current :ref:`World3D<class_World3D>` resource this **Node3D** node is registered to.
  388. .. rst-class:: classref-item-separator
  389. ----
  390. .. _class_Node3D_method_global_rotate:
  391. .. rst-class:: classref-method
  392. void **global_rotate** **(** :ref:`Vector3<class_Vector3>` axis, :ref:`float<class_float>` angle **)**
  393. Rotates the global (world) transformation around axis, a unit :ref:`Vector3<class_Vector3>`, by specified angle in radians. The rotation axis is in global coordinate system.
  394. .. rst-class:: classref-item-separator
  395. ----
  396. .. _class_Node3D_method_global_scale:
  397. .. rst-class:: classref-method
  398. void **global_scale** **(** :ref:`Vector3<class_Vector3>` scale **)**
  399. Scales the global (world) transformation by the given :ref:`Vector3<class_Vector3>` scale factors.
  400. .. rst-class:: classref-item-separator
  401. ----
  402. .. _class_Node3D_method_global_translate:
  403. .. rst-class:: classref-method
  404. void **global_translate** **(** :ref:`Vector3<class_Vector3>` offset **)**
  405. Moves the global (world) transformation by :ref:`Vector3<class_Vector3>` offset. The offset is in global coordinate system.
  406. .. rst-class:: classref-item-separator
  407. ----
  408. .. _class_Node3D_method_hide:
  409. .. rst-class:: classref-method
  410. void **hide** **(** **)**
  411. Disables rendering of this node. Changes :ref:`visible<class_Node3D_property_visible>` to ``false``.
  412. .. rst-class:: classref-item-separator
  413. ----
  414. .. _class_Node3D_method_is_local_transform_notification_enabled:
  415. .. rst-class:: classref-method
  416. :ref:`bool<class_bool>` **is_local_transform_notification_enabled** **(** **)** |const|
  417. Returns whether node notifies about its local transformation changes. **Node3D** will not propagate this by default.
  418. .. rst-class:: classref-item-separator
  419. ----
  420. .. _class_Node3D_method_is_scale_disabled:
  421. .. rst-class:: classref-method
  422. :ref:`bool<class_bool>` **is_scale_disabled** **(** **)** |const|
  423. Returns whether this node uses a scale of ``(1, 1, 1)`` or its local transformation scale.
  424. .. rst-class:: classref-item-separator
  425. ----
  426. .. _class_Node3D_method_is_transform_notification_enabled:
  427. .. rst-class:: classref-method
  428. :ref:`bool<class_bool>` **is_transform_notification_enabled** **(** **)** |const|
  429. Returns whether the node notifies about its global and local transformation changes. **Node3D** will not propagate this by default.
  430. .. rst-class:: classref-item-separator
  431. ----
  432. .. _class_Node3D_method_is_visible_in_tree:
  433. .. rst-class:: classref-method
  434. :ref:`bool<class_bool>` **is_visible_in_tree** **(** **)** |const|
  435. Returns ``true`` if the node is present in the :ref:`SceneTree<class_SceneTree>`, its :ref:`visible<class_Node3D_property_visible>` property is ``true`` and all its antecedents are also visible. If any antecedent is hidden, this node will not be visible in the scene tree.
  436. .. rst-class:: classref-item-separator
  437. ----
  438. .. _class_Node3D_method_look_at:
  439. .. rst-class:: classref-method
  440. void **look_at** **(** :ref:`Vector3<class_Vector3>` target, :ref:`Vector3<class_Vector3>` up=Vector3(0, 1, 0) **)**
  441. Rotates the node so that the local forward axis (-Z) points toward the ``target`` position.
  442. The local up axis (+Y) points as close to the ``up`` vector as possible while staying perpendicular to the local forward axis. The resulting transform is orthogonal, and the scale is preserved. Non-uniform scaling may not work correctly.
  443. The ``target`` position cannot be the same as the node's position, the ``up`` vector cannot be zero, and the direction from the node's position to the ``target`` vector cannot be parallel to the ``up`` vector.
  444. Operations take place in global space, which means that the node must be in the scene tree.
  445. .. rst-class:: classref-item-separator
  446. ----
  447. .. _class_Node3D_method_look_at_from_position:
  448. .. rst-class:: classref-method
  449. void **look_at_from_position** **(** :ref:`Vector3<class_Vector3>` position, :ref:`Vector3<class_Vector3>` target, :ref:`Vector3<class_Vector3>` up=Vector3(0, 1, 0) **)**
  450. Moves the node to the specified ``position``, and then rotates the node to point toward the ``target`` as per :ref:`look_at<class_Node3D_method_look_at>`. Operations take place in global space.
  451. .. rst-class:: classref-item-separator
  452. ----
  453. .. _class_Node3D_method_orthonormalize:
  454. .. rst-class:: classref-method
  455. void **orthonormalize** **(** **)**
  456. Resets this node's transformations (like scale, skew and taper) preserving its rotation and translation by performing Gram-Schmidt orthonormalization on this node's :ref:`Transform3D<class_Transform3D>`.
  457. .. rst-class:: classref-item-separator
  458. ----
  459. .. _class_Node3D_method_rotate:
  460. .. rst-class:: classref-method
  461. void **rotate** **(** :ref:`Vector3<class_Vector3>` axis, :ref:`float<class_float>` angle **)**
  462. Rotates the local transformation around axis, a unit :ref:`Vector3<class_Vector3>`, by specified angle in radians.
  463. .. rst-class:: classref-item-separator
  464. ----
  465. .. _class_Node3D_method_rotate_object_local:
  466. .. rst-class:: classref-method
  467. void **rotate_object_local** **(** :ref:`Vector3<class_Vector3>` axis, :ref:`float<class_float>` angle **)**
  468. Rotates the local transformation around axis, a unit :ref:`Vector3<class_Vector3>`, by specified angle in radians. The rotation axis is in object-local coordinate system.
  469. .. rst-class:: classref-item-separator
  470. ----
  471. .. _class_Node3D_method_rotate_x:
  472. .. rst-class:: classref-method
  473. void **rotate_x** **(** :ref:`float<class_float>` angle **)**
  474. Rotates the local transformation around the X axis by angle in radians.
  475. .. rst-class:: classref-item-separator
  476. ----
  477. .. _class_Node3D_method_rotate_y:
  478. .. rst-class:: classref-method
  479. void **rotate_y** **(** :ref:`float<class_float>` angle **)**
  480. Rotates the local transformation around the Y axis by angle in radians.
  481. .. rst-class:: classref-item-separator
  482. ----
  483. .. _class_Node3D_method_rotate_z:
  484. .. rst-class:: classref-method
  485. void **rotate_z** **(** :ref:`float<class_float>` angle **)**
  486. Rotates the local transformation around the Z axis by angle in radians.
  487. .. rst-class:: classref-item-separator
  488. ----
  489. .. _class_Node3D_method_scale_object_local:
  490. .. rst-class:: classref-method
  491. void **scale_object_local** **(** :ref:`Vector3<class_Vector3>` scale **)**
  492. Scales the local transformation by given 3D scale factors in object-local coordinate system.
  493. .. rst-class:: classref-item-separator
  494. ----
  495. .. _class_Node3D_method_set_disable_scale:
  496. .. rst-class:: classref-method
  497. void **set_disable_scale** **(** :ref:`bool<class_bool>` disable **)**
  498. Sets whether the node uses a scale of ``(1, 1, 1)`` or its local transformation scale. Changes to the local transformation scale are preserved.
  499. .. rst-class:: classref-item-separator
  500. ----
  501. .. _class_Node3D_method_set_identity:
  502. .. rst-class:: classref-method
  503. void **set_identity** **(** **)**
  504. Reset all transformations for this node (sets its :ref:`Transform3D<class_Transform3D>` to the identity matrix).
  505. .. rst-class:: classref-item-separator
  506. ----
  507. .. _class_Node3D_method_set_ignore_transform_notification:
  508. .. rst-class:: classref-method
  509. void **set_ignore_transform_notification** **(** :ref:`bool<class_bool>` enabled **)**
  510. Sets whether the node ignores notification that its transformation (global or local) changed.
  511. .. rst-class:: classref-item-separator
  512. ----
  513. .. _class_Node3D_method_set_notify_local_transform:
  514. .. rst-class:: classref-method
  515. void **set_notify_local_transform** **(** :ref:`bool<class_bool>` enable **)**
  516. Sets whether the node notifies about its local transformation changes. **Node3D** will not propagate this by default.
  517. .. rst-class:: classref-item-separator
  518. ----
  519. .. _class_Node3D_method_set_notify_transform:
  520. .. rst-class:: classref-method
  521. void **set_notify_transform** **(** :ref:`bool<class_bool>` enable **)**
  522. Sets whether the node notifies about its global and local transformation changes. **Node3D** will not propagate this by default, unless it is in the editor context and it has a valid gizmo.
  523. .. rst-class:: classref-item-separator
  524. ----
  525. .. _class_Node3D_method_set_subgizmo_selection:
  526. .. rst-class:: classref-method
  527. void **set_subgizmo_selection** **(** :ref:`Node3DGizmo<class_Node3DGizmo>` gizmo, :ref:`int<class_int>` id, :ref:`Transform3D<class_Transform3D>` transform **)**
  528. Set subgizmo selection for this node in the editor.
  529. .. rst-class:: classref-item-separator
  530. ----
  531. .. _class_Node3D_method_show:
  532. .. rst-class:: classref-method
  533. void **show** **(** **)**
  534. Enables rendering of this node. Changes :ref:`visible<class_Node3D_property_visible>` to ``true``.
  535. .. rst-class:: classref-item-separator
  536. ----
  537. .. _class_Node3D_method_to_global:
  538. .. rst-class:: classref-method
  539. :ref:`Vector3<class_Vector3>` **to_global** **(** :ref:`Vector3<class_Vector3>` local_point **)** |const|
  540. Transforms ``local_point`` from this node's local space to world space.
  541. .. rst-class:: classref-item-separator
  542. ----
  543. .. _class_Node3D_method_to_local:
  544. .. rst-class:: classref-method
  545. :ref:`Vector3<class_Vector3>` **to_local** **(** :ref:`Vector3<class_Vector3>` global_point **)** |const|
  546. Transforms ``global_point`` from world space to this node's local space.
  547. .. rst-class:: classref-item-separator
  548. ----
  549. .. _class_Node3D_method_translate:
  550. .. rst-class:: classref-method
  551. void **translate** **(** :ref:`Vector3<class_Vector3>` offset **)**
  552. Changes the node's position by the given offset :ref:`Vector3<class_Vector3>`.
  553. Note that the translation ``offset`` is affected by the node's scale, so if scaled by e.g. ``(10, 1, 1)``, a translation by an offset of ``(2, 0, 0)`` would actually add 20 (``2 * 10``) to the X coordinate.
  554. .. rst-class:: classref-item-separator
  555. ----
  556. .. _class_Node3D_method_translate_object_local:
  557. .. rst-class:: classref-method
  558. void **translate_object_local** **(** :ref:`Vector3<class_Vector3>` offset **)**
  559. Changes the node's position by the given offset :ref:`Vector3<class_Vector3>` in local space.
  560. .. rst-class:: classref-item-separator
  561. ----
  562. .. _class_Node3D_method_update_gizmos:
  563. .. rst-class:: classref-method
  564. void **update_gizmos** **(** **)**
  565. Updates all the :ref:`Node3DGizmo<class_Node3DGizmo>`\ s attached to this node.
  566. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  567. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  568. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  569. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  570. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  571. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`