class_gltfnode.rst 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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/modules/gltf/doc_classes/GLTFNode.xml.
  6. .. _class_GLTFNode:
  7. GLTFNode
  8. ========
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. GLTF node class.
  11. Description
  12. -----------
  13. Represents a GLTF node. GLTF nodes may have names, transforms, children (other GLTF nodes), and more specialized properties (represented by their own classes).
  14. Tutorials
  15. ---------
  16. - `GLTF scene and node spec <https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_004_ScenesNodes.md">`__
  17. Properties
  18. ----------
  19. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  20. | :ref:`int<class_int>` | :ref:`camera<class_GLTFNode_property_camera>` | ``-1`` |
  21. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  22. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`children<class_GLTFNode_property_children>` | ``PackedInt32Array()`` |
  23. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  24. | :ref:`int<class_int>` | :ref:`height<class_GLTFNode_property_height>` | ``-1`` |
  25. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  26. | :ref:`bool<class_bool>` | :ref:`joint<class_GLTFNode_property_joint>` | ``false`` |
  27. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  28. | :ref:`int<class_int>` | :ref:`light<class_GLTFNode_property_light>` | ``-1`` |
  29. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  30. | :ref:`int<class_int>` | :ref:`mesh<class_GLTFNode_property_mesh>` | ``-1`` |
  31. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  32. | :ref:`int<class_int>` | :ref:`parent<class_GLTFNode_property_parent>` | ``-1`` |
  33. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  34. | :ref:`Vector3<class_Vector3>` | :ref:`position<class_GLTFNode_property_position>` | ``Vector3(0, 0, 0)`` |
  35. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  36. | :ref:`Quaternion<class_Quaternion>` | :ref:`rotation<class_GLTFNode_property_rotation>` | ``Quaternion(0, 0, 0, 1)`` |
  37. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  38. | :ref:`Vector3<class_Vector3>` | :ref:`scale<class_GLTFNode_property_scale>` | ``Vector3(1, 1, 1)`` |
  39. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  40. | :ref:`int<class_int>` | :ref:`skeleton<class_GLTFNode_property_skeleton>` | ``-1`` |
  41. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  42. | :ref:`int<class_int>` | :ref:`skin<class_GLTFNode_property_skin>` | ``-1`` |
  43. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  44. | :ref:`Transform3D<class_Transform3D>` | :ref:`xform<class_GLTFNode_property_xform>` | ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)`` |
  45. +-------------------------------------------------+---------------------------------------------------+-----------------------------------------------------+
  46. Property Descriptions
  47. ---------------------
  48. .. _class_GLTFNode_property_camera:
  49. - :ref:`int<class_int>` **camera**
  50. +-----------+-------------------+
  51. | *Default* | ``-1`` |
  52. +-----------+-------------------+
  53. | *Setter* | set_camera(value) |
  54. +-----------+-------------------+
  55. | *Getter* | get_camera() |
  56. +-----------+-------------------+
  57. ----
  58. .. _class_GLTFNode_property_children:
  59. - :ref:`PackedInt32Array<class_PackedInt32Array>` **children**
  60. +-----------+------------------------+
  61. | *Default* | ``PackedInt32Array()`` |
  62. +-----------+------------------------+
  63. | *Setter* | set_children(value) |
  64. +-----------+------------------------+
  65. | *Getter* | get_children() |
  66. +-----------+------------------------+
  67. ----
  68. .. _class_GLTFNode_property_height:
  69. - :ref:`int<class_int>` **height**
  70. +-----------+-------------------+
  71. | *Default* | ``-1`` |
  72. +-----------+-------------------+
  73. | *Setter* | set_height(value) |
  74. +-----------+-------------------+
  75. | *Getter* | get_height() |
  76. +-----------+-------------------+
  77. ----
  78. .. _class_GLTFNode_property_joint:
  79. - :ref:`bool<class_bool>` **joint**
  80. +-----------+------------------+
  81. | *Default* | ``false`` |
  82. +-----------+------------------+
  83. | *Setter* | set_joint(value) |
  84. +-----------+------------------+
  85. | *Getter* | get_joint() |
  86. +-----------+------------------+
  87. ----
  88. .. _class_GLTFNode_property_light:
  89. - :ref:`int<class_int>` **light**
  90. +-----------+------------------+
  91. | *Default* | ``-1`` |
  92. +-----------+------------------+
  93. | *Setter* | set_light(value) |
  94. +-----------+------------------+
  95. | *Getter* | get_light() |
  96. +-----------+------------------+
  97. ----
  98. .. _class_GLTFNode_property_mesh:
  99. - :ref:`int<class_int>` **mesh**
  100. +-----------+-----------------+
  101. | *Default* | ``-1`` |
  102. +-----------+-----------------+
  103. | *Setter* | set_mesh(value) |
  104. +-----------+-----------------+
  105. | *Getter* | get_mesh() |
  106. +-----------+-----------------+
  107. ----
  108. .. _class_GLTFNode_property_parent:
  109. - :ref:`int<class_int>` **parent**
  110. +-----------+-------------------+
  111. | *Default* | ``-1`` |
  112. +-----------+-------------------+
  113. | *Setter* | set_parent(value) |
  114. +-----------+-------------------+
  115. | *Getter* | get_parent() |
  116. +-----------+-------------------+
  117. ----
  118. .. _class_GLTFNode_property_position:
  119. - :ref:`Vector3<class_Vector3>` **position**
  120. +-----------+----------------------+
  121. | *Default* | ``Vector3(0, 0, 0)`` |
  122. +-----------+----------------------+
  123. | *Setter* | set_position(value) |
  124. +-----------+----------------------+
  125. | *Getter* | get_position() |
  126. +-----------+----------------------+
  127. ----
  128. .. _class_GLTFNode_property_rotation:
  129. - :ref:`Quaternion<class_Quaternion>` **rotation**
  130. +-----------+----------------------------+
  131. | *Default* | ``Quaternion(0, 0, 0, 1)`` |
  132. +-----------+----------------------------+
  133. | *Setter* | set_rotation(value) |
  134. +-----------+----------------------------+
  135. | *Getter* | get_rotation() |
  136. +-----------+----------------------------+
  137. ----
  138. .. _class_GLTFNode_property_scale:
  139. - :ref:`Vector3<class_Vector3>` **scale**
  140. +-----------+----------------------+
  141. | *Default* | ``Vector3(1, 1, 1)`` |
  142. +-----------+----------------------+
  143. | *Setter* | set_scale(value) |
  144. +-----------+----------------------+
  145. | *Getter* | get_scale() |
  146. +-----------+----------------------+
  147. ----
  148. .. _class_GLTFNode_property_skeleton:
  149. - :ref:`int<class_int>` **skeleton**
  150. +-----------+---------------------+
  151. | *Default* | ``-1`` |
  152. +-----------+---------------------+
  153. | *Setter* | set_skeleton(value) |
  154. +-----------+---------------------+
  155. | *Getter* | get_skeleton() |
  156. +-----------+---------------------+
  157. ----
  158. .. _class_GLTFNode_property_skin:
  159. - :ref:`int<class_int>` **skin**
  160. +-----------+-----------------+
  161. | *Default* | ``-1`` |
  162. +-----------+-----------------+
  163. | *Setter* | set_skin(value) |
  164. +-----------+-----------------+
  165. | *Getter* | get_skin() |
  166. +-----------+-----------------+
  167. ----
  168. .. _class_GLTFNode_property_xform:
  169. - :ref:`Transform3D<class_Transform3D>` **xform**
  170. +-----------+-----------------------------------------------------+
  171. | *Default* | ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)`` |
  172. +-----------+-----------------------------------------------------+
  173. | *Setter* | set_xform(value) |
  174. +-----------+-----------------------------------------------------+
  175. | *Getter* | get_xform() |
  176. +-----------+-----------------------------------------------------+
  177. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  178. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  179. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  180. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  181. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  182. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`