Merge pull request #10054 from furkanCalik7/manual-transform-update

Clarify Documentation for rotated_local() Function in 3D Transforms
This commit is contained in:
Max Hilbrunner
2024-11-17 11:19:15 +01:00
committed by GitHub
+2
View File
@@ -201,6 +201,8 @@ To rotate relative to object space (the node's own transform), use the following
// Rotate around the object's local X axis by 0.1 radians.
RotateObjectLocal(new Vector3(1, 0, 0), 0.1f);
The axis should be defined in the local coordinate system of the object. For example, to rotate around the object's local X, Y, or Z axes, use ``Vector3.RIGHT`` for the X-axis, ``Vector3.UP`` for the Y-axis, and ``Vector3.FORWARD`` for the Z-axis.
Precision errors
================