Update tutorials: Rename Transform to Transform3D (#5603)

This commit is contained in:
Markus Sauermann
2022-02-14 13:27:37 +01:00
committed by GitHub
parent 332401aac8
commit aaf6b3e504
9 changed files with 10 additions and 10 deletions

View File

@@ -29,7 +29,7 @@ node for everything 3D.
Spatial nodes have a local transform, which is relative to the parent
node (as long as the parent node is also of **or inherits from** the type
Spatial). This transform can be accessed as a 4×3
:ref:`Transform <class_Transform>`, or as 3 :ref:`Vector3 <class_Vector3>`
:ref:`Transform3D <class_Transform3D>`, or as 3 :ref:`Vector3 <class_Vector3>`
members representing location, Euler rotation (X, Y and Z angles) and
scale.

View File

@@ -341,7 +341,7 @@ Example of looking around, FPS style:
_rotationY += mouseMotion.Relative.y * LookAroundSpeed;
// reset rotation
Transform transform = Transform;
Transform3D transform = Transform;
transform.basis = Basis.Identity;
Transform = transform;