Merge pull request #7338 from paddy-exe/spatial-to-node3d-rename

Mention Spatial -> Node3D rename in Introduction docs
This commit is contained in:
Rémi Verschelde
2023-05-12 23:33:26 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -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

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