From c0f0a58695937bbe403aef829caa8bf5e6dae15b Mon Sep 17 00:00:00 2001 From: Furkan Calik <70354160+furkanCalik7@users.noreply.github.com> Date: Sun, 6 Oct 2024 20:23:39 +0300 Subject: [PATCH] Update using_transforms.rst to clarify rotate_local() axis usage --- tutorials/3d/using_transforms.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutorials/3d/using_transforms.rst b/tutorials/3d/using_transforms.rst index c3e9f1136..1041109ae 100644 --- a/tutorials/3d/using_transforms.rst +++ b/tutorials/3d/using_transforms.rst @@ -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 ================