Mention Spatial -> Node3D rename in Introduction docs

This commit is contained in:
Patrick
2023-05-11 23:31:43 +02:00
parent e7c5dd3d1b
commit 60da673ced
2 changed files with 6 additions and 1 deletions
@@ -46,7 +46,8 @@ It is made of a ``CharacterBody2D`` node named "Character", a ``Sprite2D``, a
``Camera2D``, and a ``CollisionShape2D``.
.. note:: The node names end with "2D" because this is a 2D scene. Their 3D
counterparts have names that end with "3D".
counterparts have names that end with "3D". Be aware that "Spatial"
Nodes are now called "Node3D" starting with Godot 4.
Notice how nodes and scenes look the same in the editor. When you save a tree of
nodes as a scene, it then shows as a single node, with its internal structure
+4
View File
@@ -24,6 +24,10 @@ Node3D node
Following this reasoning, the 3D engine uses the :ref:`Node3D <class_Node3D>`
node for everything 3D.
.. note:: Be aware that "Spatial" Nodes are now called "Node3D"
starting with Godot 4. Any Godot 3.x references to "Spatial"
Nodes refer to "Node3D" in Godot 4.
.. image:: img/tuto_3d1.png
Node3Ds have a local transform, which is relative to the parent