class_node3d.rst 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009
  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/4.0/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.0/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 :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. The rotation is edited using :ref:`Vector3<class_Vector3>` Euler angles.
  160. .. _class_Node3D_constant_ROTATION_EDIT_MODE_QUATERNION:
  161. .. rst-class:: classref-enumeration-constant
  162. :ref:`RotationEditMode<enum_Node3D_RotationEditMode>` **ROTATION_EDIT_MODE_QUATERNION** = ``1``
  163. The rotation is edited using a :ref:`Quaternion<class_Quaternion>`.
  164. .. _class_Node3D_constant_ROTATION_EDIT_MODE_BASIS:
  165. .. rst-class:: classref-enumeration-constant
  166. :ref:`RotationEditMode<enum_Node3D_RotationEditMode>` **ROTATION_EDIT_MODE_BASIS** = ``2``
  167. The rotation is edited using a :ref:`Basis<class_Basis>`. In this mode, :ref:`scale<class_Node3D_property_scale>` can't be edited separately.
  168. .. rst-class:: classref-section-separator
  169. ----
  170. .. rst-class:: classref-descriptions-group
  171. Constants
  172. ---------
  173. .. _class_Node3D_constant_NOTIFICATION_TRANSFORM_CHANGED:
  174. .. rst-class:: classref-constant
  175. **NOTIFICATION_TRANSFORM_CHANGED** = ``2000``
  176. Node3D nodes receives this notification when their global transform changes. This means that either the current or a parent node changed its transform.
  177. 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.
  178. .. _class_Node3D_constant_NOTIFICATION_ENTER_WORLD:
  179. .. rst-class:: classref-constant
  180. **NOTIFICATION_ENTER_WORLD** = ``41``
  181. Node3D nodes receives this notification when they are registered to new :ref:`World3D<class_World3D>` resource.
  182. .. _class_Node3D_constant_NOTIFICATION_EXIT_WORLD:
  183. .. rst-class:: classref-constant
  184. **NOTIFICATION_EXIT_WORLD** = ``42``
  185. Node3D nodes receives this notification when they are unregistered from current :ref:`World3D<class_World3D>` resource.
  186. .. _class_Node3D_constant_NOTIFICATION_VISIBILITY_CHANGED:
  187. .. rst-class:: classref-constant
  188. **NOTIFICATION_VISIBILITY_CHANGED** = ``43``
  189. Node3D nodes receives this notification when their visibility changes.
  190. .. _class_Node3D_constant_NOTIFICATION_LOCAL_TRANSFORM_CHANGED:
  191. .. rst-class:: classref-constant
  192. **NOTIFICATION_LOCAL_TRANSFORM_CHANGED** = ``44``
  193. Node3D nodes receives this notification when their local transform changes. This is not received when the transform of a parent node is changed.
  194. 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>`.
  195. .. rst-class:: classref-section-separator
  196. ----
  197. .. rst-class:: classref-descriptions-group
  198. Property Descriptions
  199. ---------------------
  200. .. _class_Node3D_property_basis:
  201. .. rst-class:: classref-property
  202. :ref:`Basis<class_Basis>` **basis**
  203. .. rst-class:: classref-property-setget
  204. - void **set_basis** **(** :ref:`Basis<class_Basis>` value **)**
  205. - :ref:`Basis<class_Basis>` **get_basis** **(** **)**
  206. Direct access to the 3x3 basis of the :ref:`Transform3D<class_Transform3D>` property.
  207. .. rst-class:: classref-item-separator
  208. ----
  209. .. _class_Node3D_property_global_position:
  210. .. rst-class:: classref-property
  211. :ref:`Vector3<class_Vector3>` **global_position**
  212. .. rst-class:: classref-property-setget
  213. - void **set_global_position** **(** :ref:`Vector3<class_Vector3>` value **)**
  214. - :ref:`Vector3<class_Vector3>` **get_global_position** **(** **)**
  215. Global position of this node. This is equivalent to ``global_transform.origin``.
  216. .. rst-class:: classref-item-separator
  217. ----
  218. .. _class_Node3D_property_global_rotation:
  219. .. rst-class:: classref-property
  220. :ref:`Vector3<class_Vector3>` **global_rotation**
  221. .. rst-class:: classref-property-setget
  222. - void **set_global_rotation** **(** :ref:`Vector3<class_Vector3>` value **)**
  223. - :ref:`Vector3<class_Vector3>` **get_global_rotation** **(** **)**
  224. Rotation part of the global transformation in radians, specified in terms of YXZ-Euler angles in the format (X angle, Y angle, Z angle).
  225. \ **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.
  226. .. rst-class:: classref-item-separator
  227. ----
  228. .. _class_Node3D_property_global_rotation_degrees:
  229. .. rst-class:: classref-property
  230. :ref:`Vector3<class_Vector3>` **global_rotation_degrees**
  231. .. rst-class:: classref-property-setget
  232. - void **set_global_rotation_degrees** **(** :ref:`Vector3<class_Vector3>` value **)**
  233. - :ref:`Vector3<class_Vector3>` **get_global_rotation_degrees** **(** **)**
  234. Helper property to access :ref:`global_rotation<class_Node3D_property_global_rotation>` in degrees instead of radians.
  235. .. rst-class:: classref-item-separator
  236. ----
  237. .. _class_Node3D_property_global_transform:
  238. .. rst-class:: classref-property
  239. :ref:`Transform3D<class_Transform3D>` **global_transform**
  240. .. rst-class:: classref-property-setget
  241. - void **set_global_transform** **(** :ref:`Transform3D<class_Transform3D>` value **)**
  242. - :ref:`Transform3D<class_Transform3D>` **get_global_transform** **(** **)**
  243. World3D space (global) :ref:`Transform3D<class_Transform3D>` of this node.
  244. .. rst-class:: classref-item-separator
  245. ----
  246. .. _class_Node3D_property_position:
  247. .. rst-class:: classref-property
  248. :ref:`Vector3<class_Vector3>` **position** = ``Vector3(0, 0, 0)``
  249. .. rst-class:: classref-property-setget
  250. - void **set_position** **(** :ref:`Vector3<class_Vector3>` value **)**
  251. - :ref:`Vector3<class_Vector3>` **get_position** **(** **)**
  252. Local position or translation of this node relative to the parent. This is equivalent to ``transform.origin``.
  253. .. rst-class:: classref-item-separator
  254. ----
  255. .. _class_Node3D_property_quaternion:
  256. .. rst-class:: classref-property
  257. :ref:`Quaternion<class_Quaternion>` **quaternion**
  258. .. rst-class:: classref-property-setget
  259. - void **set_quaternion** **(** :ref:`Quaternion<class_Quaternion>` value **)**
  260. - :ref:`Quaternion<class_Quaternion>` **get_quaternion** **(** **)**
  261. Access to the node rotation as a :ref:`Quaternion<class_Quaternion>`. This property is ideal for tweening complex rotations.
  262. .. rst-class:: classref-item-separator
  263. ----
  264. .. _class_Node3D_property_rotation:
  265. .. rst-class:: classref-property
  266. :ref:`Vector3<class_Vector3>` **rotation** = ``Vector3(0, 0, 0)``
  267. .. rst-class:: classref-property-setget
  268. - void **set_rotation** **(** :ref:`Vector3<class_Vector3>` value **)**
  269. - :ref:`Vector3<class_Vector3>` **get_rotation** **(** **)**
  270. 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.
  271. \ **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.
  272. \ **Note:** This property is edited in the inspector in degrees. If you want to use degrees in a script, use :ref:`rotation_degrees<class_Node3D_property_rotation_degrees>`.
  273. .. rst-class:: classref-item-separator
  274. ----
  275. .. _class_Node3D_property_rotation_degrees:
  276. .. rst-class:: classref-property
  277. :ref:`Vector3<class_Vector3>` **rotation_degrees**
  278. .. rst-class:: classref-property-setget
  279. - void **set_rotation_degrees** **(** :ref:`Vector3<class_Vector3>` value **)**
  280. - :ref:`Vector3<class_Vector3>` **get_rotation_degrees** **(** **)**
  281. Helper property to access :ref:`rotation<class_Node3D_property_rotation>` in degrees instead of radians.
  282. .. rst-class:: classref-item-separator
  283. ----
  284. .. _class_Node3D_property_rotation_edit_mode:
  285. .. rst-class:: classref-property
  286. :ref:`RotationEditMode<enum_Node3D_RotationEditMode>` **rotation_edit_mode** = ``0``
  287. .. rst-class:: classref-property-setget
  288. - void **set_rotation_edit_mode** **(** :ref:`RotationEditMode<enum_Node3D_RotationEditMode>` value **)**
  289. - :ref:`RotationEditMode<enum_Node3D_RotationEditMode>` **get_rotation_edit_mode** **(** **)**
  290. Specify how rotation (and scale) will be presented in the editor.
  291. .. rst-class:: classref-item-separator
  292. ----
  293. .. _class_Node3D_property_rotation_order:
  294. .. rst-class:: classref-property
  295. :ref:`EulerOrder<enum_@GlobalScope_EulerOrder>` **rotation_order** = ``2``
  296. .. rst-class:: classref-property-setget
  297. - void **set_rotation_order** **(** :ref:`EulerOrder<enum_@GlobalScope_EulerOrder>` value **)**
  298. - :ref:`EulerOrder<enum_@GlobalScope_EulerOrder>` **get_rotation_order** **(** **)**
  299. 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.
  300. .. rst-class:: classref-item-separator
  301. ----
  302. .. _class_Node3D_property_scale:
  303. .. rst-class:: classref-property
  304. :ref:`Vector3<class_Vector3>` **scale** = ``Vector3(1, 1, 1)``
  305. .. rst-class:: classref-property-setget
  306. - void **set_scale** **(** :ref:`Vector3<class_Vector3>` value **)**
  307. - :ref:`Vector3<class_Vector3>` **get_scale** **(** **)**
  308. Scale part of the local transformation.
  309. \ **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.
  310. \ **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>`.
  311. .. rst-class:: classref-item-separator
  312. ----
  313. .. _class_Node3D_property_top_level:
  314. .. rst-class:: classref-property
  315. :ref:`bool<class_bool>` **top_level** = ``false``
  316. .. rst-class:: classref-property-setget
  317. - void **set_as_top_level** **(** :ref:`bool<class_bool>` value **)**
  318. - :ref:`bool<class_bool>` **is_set_as_top_level** **(** **)**
  319. If ``true``, the node will not inherit its transformations from its parent. Node transformations are only in global space.
  320. .. rst-class:: classref-item-separator
  321. ----
  322. .. _class_Node3D_property_transform:
  323. .. rst-class:: classref-property
  324. :ref:`Transform3D<class_Transform3D>` **transform** = ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)``
  325. .. rst-class:: classref-property-setget
  326. - void **set_transform** **(** :ref:`Transform3D<class_Transform3D>` value **)**
  327. - :ref:`Transform3D<class_Transform3D>` **get_transform** **(** **)**
  328. Local space :ref:`Transform3D<class_Transform3D>` of this node, with respect to the parent node.
  329. .. rst-class:: classref-item-separator
  330. ----
  331. .. _class_Node3D_property_visibility_parent:
  332. .. rst-class:: classref-property
  333. :ref:`NodePath<class_NodePath>` **visibility_parent** = ``NodePath("")``
  334. .. rst-class:: classref-property-setget
  335. - void **set_visibility_parent** **(** :ref:`NodePath<class_NodePath>` value **)**
  336. - :ref:`NodePath<class_NodePath>` **get_visibility_parent** **(** **)**
  337. 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.
  338. .. rst-class:: classref-item-separator
  339. ----
  340. .. _class_Node3D_property_visible:
  341. .. rst-class:: classref-property
  342. :ref:`bool<class_bool>` **visible** = ``true``
  343. .. rst-class:: classref-property-setget
  344. - void **set_visible** **(** :ref:`bool<class_bool>` value **)**
  345. - :ref:`bool<class_bool>` **is_visible** **(** **)**
  346. If ``true``, this node is drawn. The node is only visible if all of its ancestors are visible as well (in other words, :ref:`is_visible_in_tree<class_Node3D_method_is_visible_in_tree>` must return ``true``).
  347. .. rst-class:: classref-section-separator
  348. ----
  349. .. rst-class:: classref-descriptions-group
  350. Method Descriptions
  351. -------------------
  352. .. _class_Node3D_method_add_gizmo:
  353. .. rst-class:: classref-method
  354. void **add_gizmo** **(** :ref:`Node3DGizmo<class_Node3DGizmo>` gizmo **)**
  355. Attach a gizmo to this ``Node3D``.
  356. .. rst-class:: classref-item-separator
  357. ----
  358. .. _class_Node3D_method_clear_gizmos:
  359. .. rst-class:: classref-method
  360. void **clear_gizmos** **(** **)**
  361. Clear all gizmos attached to this ``Node3D``.
  362. .. rst-class:: classref-item-separator
  363. ----
  364. .. _class_Node3D_method_clear_subgizmo_selection:
  365. .. rst-class:: classref-method
  366. void **clear_subgizmo_selection** **(** **)**
  367. Clears subgizmo selection for this node in the editor. Useful when subgizmo IDs become invalid after a property change.
  368. .. rst-class:: classref-item-separator
  369. ----
  370. .. _class_Node3D_method_force_update_transform:
  371. .. rst-class:: classref-method
  372. void **force_update_transform** **(** **)**
  373. 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.
  374. .. rst-class:: classref-item-separator
  375. ----
  376. .. _class_Node3D_method_get_gizmos:
  377. .. rst-class:: classref-method
  378. :ref:`Node3DGizmo[]<class_Node3DGizmo>` **get_gizmos** **(** **)** |const|
  379. Returns all the gizmos attached to this ``Node3D``.
  380. .. rst-class:: classref-item-separator
  381. ----
  382. .. _class_Node3D_method_get_parent_node_3d:
  383. .. rst-class:: classref-method
  384. :ref:`Node3D<class_Node3D>` **get_parent_node_3d** **(** **)** |const|
  385. Returns the parent **Node3D**, or an empty :ref:`Object<class_Object>` if no parent exists or parent is not of type **Node3D**.
  386. .. rst-class:: classref-item-separator
  387. ----
  388. .. _class_Node3D_method_get_world_3d:
  389. .. rst-class:: classref-method
  390. :ref:`World3D<class_World3D>` **get_world_3d** **(** **)** |const|
  391. Returns the current :ref:`World3D<class_World3D>` resource this **Node3D** node is registered to.
  392. .. rst-class:: classref-item-separator
  393. ----
  394. .. _class_Node3D_method_global_rotate:
  395. .. rst-class:: classref-method
  396. void **global_rotate** **(** :ref:`Vector3<class_Vector3>` axis, :ref:`float<class_float>` angle **)**
  397. 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.
  398. .. rst-class:: classref-item-separator
  399. ----
  400. .. _class_Node3D_method_global_scale:
  401. .. rst-class:: classref-method
  402. void **global_scale** **(** :ref:`Vector3<class_Vector3>` scale **)**
  403. Scales the global (world) transformation by the given :ref:`Vector3<class_Vector3>` scale factors.
  404. .. rst-class:: classref-item-separator
  405. ----
  406. .. _class_Node3D_method_global_translate:
  407. .. rst-class:: classref-method
  408. void **global_translate** **(** :ref:`Vector3<class_Vector3>` offset **)**
  409. Moves the global (world) transformation by :ref:`Vector3<class_Vector3>` offset. The offset is in global coordinate system.
  410. .. rst-class:: classref-item-separator
  411. ----
  412. .. _class_Node3D_method_hide:
  413. .. rst-class:: classref-method
  414. void **hide** **(** **)**
  415. Disables rendering of this node. Changes :ref:`visible<class_Node3D_property_visible>` to ``false``.
  416. .. rst-class:: classref-item-separator
  417. ----
  418. .. _class_Node3D_method_is_local_transform_notification_enabled:
  419. .. rst-class:: classref-method
  420. :ref:`bool<class_bool>` **is_local_transform_notification_enabled** **(** **)** |const|
  421. Returns whether node notifies about its local transformation changes. **Node3D** will not propagate this by default.
  422. .. rst-class:: classref-item-separator
  423. ----
  424. .. _class_Node3D_method_is_scale_disabled:
  425. .. rst-class:: classref-method
  426. :ref:`bool<class_bool>` **is_scale_disabled** **(** **)** |const|
  427. Returns whether this node uses a scale of ``(1, 1, 1)`` or its local transformation scale.
  428. .. rst-class:: classref-item-separator
  429. ----
  430. .. _class_Node3D_method_is_transform_notification_enabled:
  431. .. rst-class:: classref-method
  432. :ref:`bool<class_bool>` **is_transform_notification_enabled** **(** **)** |const|
  433. Returns whether the node notifies about its global and local transformation changes. **Node3D** will not propagate this by default.
  434. .. rst-class:: classref-item-separator
  435. ----
  436. .. _class_Node3D_method_is_visible_in_tree:
  437. .. rst-class:: classref-method
  438. :ref:`bool<class_bool>` **is_visible_in_tree** **(** **)** |const|
  439. 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 ancestors are also visible. If any ancestor is hidden, this node will not be visible in the scene tree.
  440. .. rst-class:: classref-item-separator
  441. ----
  442. .. _class_Node3D_method_look_at:
  443. .. rst-class:: classref-method
  444. void **look_at** **(** :ref:`Vector3<class_Vector3>` target, :ref:`Vector3<class_Vector3>` up=Vector3(0, 1, 0) **)**
  445. Rotates the node so that the local forward axis (-Z) points toward the ``target`` position.
  446. 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.
  447. 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.
  448. Operations take place in global space, which means that the node must be in the scene tree.
  449. .. rst-class:: classref-item-separator
  450. ----
  451. .. _class_Node3D_method_look_at_from_position:
  452. .. rst-class:: classref-method
  453. void **look_at_from_position** **(** :ref:`Vector3<class_Vector3>` position, :ref:`Vector3<class_Vector3>` target, :ref:`Vector3<class_Vector3>` up=Vector3(0, 1, 0) **)**
  454. 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.
  455. .. rst-class:: classref-item-separator
  456. ----
  457. .. _class_Node3D_method_orthonormalize:
  458. .. rst-class:: classref-method
  459. void **orthonormalize** **(** **)**
  460. 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>`.
  461. .. rst-class:: classref-item-separator
  462. ----
  463. .. _class_Node3D_method_rotate:
  464. .. rst-class:: classref-method
  465. void **rotate** **(** :ref:`Vector3<class_Vector3>` axis, :ref:`float<class_float>` angle **)**
  466. Rotates the local transformation around axis, a unit :ref:`Vector3<class_Vector3>`, by specified angle in radians.
  467. .. rst-class:: classref-item-separator
  468. ----
  469. .. _class_Node3D_method_rotate_object_local:
  470. .. rst-class:: classref-method
  471. void **rotate_object_local** **(** :ref:`Vector3<class_Vector3>` axis, :ref:`float<class_float>` angle **)**
  472. 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.
  473. .. rst-class:: classref-item-separator
  474. ----
  475. .. _class_Node3D_method_rotate_x:
  476. .. rst-class:: classref-method
  477. void **rotate_x** **(** :ref:`float<class_float>` angle **)**
  478. Rotates the local transformation around the X axis by angle in radians.
  479. .. rst-class:: classref-item-separator
  480. ----
  481. .. _class_Node3D_method_rotate_y:
  482. .. rst-class:: classref-method
  483. void **rotate_y** **(** :ref:`float<class_float>` angle **)**
  484. Rotates the local transformation around the Y axis by angle in radians.
  485. .. rst-class:: classref-item-separator
  486. ----
  487. .. _class_Node3D_method_rotate_z:
  488. .. rst-class:: classref-method
  489. void **rotate_z** **(** :ref:`float<class_float>` angle **)**
  490. Rotates the local transformation around the Z axis by angle in radians.
  491. .. rst-class:: classref-item-separator
  492. ----
  493. .. _class_Node3D_method_scale_object_local:
  494. .. rst-class:: classref-method
  495. void **scale_object_local** **(** :ref:`Vector3<class_Vector3>` scale **)**
  496. Scales the local transformation by given 3D scale factors in object-local coordinate system.
  497. .. rst-class:: classref-item-separator
  498. ----
  499. .. _class_Node3D_method_set_disable_scale:
  500. .. rst-class:: classref-method
  501. void **set_disable_scale** **(** :ref:`bool<class_bool>` disable **)**
  502. Sets whether the node uses a scale of ``(1, 1, 1)`` or its local transformation scale. Changes to the local transformation scale are preserved.
  503. .. rst-class:: classref-item-separator
  504. ----
  505. .. _class_Node3D_method_set_identity:
  506. .. rst-class:: classref-method
  507. void **set_identity** **(** **)**
  508. Reset all transformations for this node (sets its :ref:`Transform3D<class_Transform3D>` to the identity matrix).
  509. .. rst-class:: classref-item-separator
  510. ----
  511. .. _class_Node3D_method_set_ignore_transform_notification:
  512. .. rst-class:: classref-method
  513. void **set_ignore_transform_notification** **(** :ref:`bool<class_bool>` enabled **)**
  514. Sets whether the node ignores notification that its transformation (global or local) changed.
  515. .. rst-class:: classref-item-separator
  516. ----
  517. .. _class_Node3D_method_set_notify_local_transform:
  518. .. rst-class:: classref-method
  519. void **set_notify_local_transform** **(** :ref:`bool<class_bool>` enable **)**
  520. Sets whether the node notifies about its local transformation changes. **Node3D** will not propagate this by default.
  521. .. rst-class:: classref-item-separator
  522. ----
  523. .. _class_Node3D_method_set_notify_transform:
  524. .. rst-class:: classref-method
  525. void **set_notify_transform** **(** :ref:`bool<class_bool>` enable **)**
  526. 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.
  527. .. rst-class:: classref-item-separator
  528. ----
  529. .. _class_Node3D_method_set_subgizmo_selection:
  530. .. rst-class:: classref-method
  531. void **set_subgizmo_selection** **(** :ref:`Node3DGizmo<class_Node3DGizmo>` gizmo, :ref:`int<class_int>` id, :ref:`Transform3D<class_Transform3D>` transform **)**
  532. Set subgizmo selection for this node in the editor.
  533. .. rst-class:: classref-item-separator
  534. ----
  535. .. _class_Node3D_method_show:
  536. .. rst-class:: classref-method
  537. void **show** **(** **)**
  538. Enables rendering of this node. Changes :ref:`visible<class_Node3D_property_visible>` to ``true``.
  539. .. rst-class:: classref-item-separator
  540. ----
  541. .. _class_Node3D_method_to_global:
  542. .. rst-class:: classref-method
  543. :ref:`Vector3<class_Vector3>` **to_global** **(** :ref:`Vector3<class_Vector3>` local_point **)** |const|
  544. Transforms ``local_point`` from this node's local space to world space.
  545. .. rst-class:: classref-item-separator
  546. ----
  547. .. _class_Node3D_method_to_local:
  548. .. rst-class:: classref-method
  549. :ref:`Vector3<class_Vector3>` **to_local** **(** :ref:`Vector3<class_Vector3>` global_point **)** |const|
  550. Transforms ``global_point`` from world space to this node's local space.
  551. .. rst-class:: classref-item-separator
  552. ----
  553. .. _class_Node3D_method_translate:
  554. .. rst-class:: classref-method
  555. void **translate** **(** :ref:`Vector3<class_Vector3>` offset **)**
  556. Changes the node's position by the given offset :ref:`Vector3<class_Vector3>`.
  557. 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.
  558. .. rst-class:: classref-item-separator
  559. ----
  560. .. _class_Node3D_method_translate_object_local:
  561. .. rst-class:: classref-method
  562. void **translate_object_local** **(** :ref:`Vector3<class_Vector3>` offset **)**
  563. Changes the node's position by the given offset :ref:`Vector3<class_Vector3>` in local space.
  564. .. rst-class:: classref-item-separator
  565. ----
  566. .. _class_Node3D_method_update_gizmos:
  567. .. rst-class:: classref-method
  568. void **update_gizmos** **(** **)**
  569. Updates all the :ref:`Node3DGizmo<class_Node3DGizmo>`\ s attached to this node.
  570. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  571. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  572. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  573. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  574. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  575. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`