mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Update tutorials: Rename Transform to Transform3D (#5603)
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user