diff options
author | foxydevloper <12120644+foxydevloper@users.noreply.github.com> | 2021-07-21 00:13:52 -0400 |
---|---|---|
committer | foxydevloper <12120644+foxydevloper@users.noreply.github.com> | 2022-07-01 10:27:07 -0400 |
commit | 8b16a4131fa1073c098a6ac1c987cfd7d6bb5408 (patch) | |
tree | cb066e32854c1982a9e398e42c2895e842a7a56b /doc/classes | |
parent | d30a0d223e6bf0a1cf17b8fc1d17ae5ba2115403 (diff) |
Add global_position and global_rotation to Node3D
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Node3D.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/classes/Node3D.xml b/doc/classes/Node3D.xml index ac434af4fa..ff2afd595a 100644 --- a/doc/classes/Node3D.xml +++ b/doc/classes/Node3D.xml @@ -281,6 +281,13 @@ <member name="basis" type="Basis" setter="set_basis" getter="get_basis"> Direct access to the 3x3 basis of the [Transform3D] property. </member> + <member name="global_position" type="Vector3" setter="set_global_position" getter="get_global_position"> + Global position of this node. This is equivalent to [code]global_transform.origin[/code]. + </member> + <member name="global_rotation" type="Vector3" setter="set_global_rotation" getter="get_global_rotation"> + Rotation part of the global transformation in radians, specified in terms of YXZ-Euler angles in the format (X angle, Y angle, Z angle). + [b]Note:[/b] In the mathematical sense, rotation is a matrix and not a vector. The three Euler angles, which are the three independent parameters of the Euler-angle parametrization of the rotation matrix, are stored in a [Vector3] data structure not because the rotation is a vector, but only because [Vector3] exists as a convenient data-structure to store 3 floating-point numbers. Therefore, applying affine operations on the rotation "vector" is not meaningful. + </member> <member name="global_transform" type="Transform3D" setter="set_global_transform" getter="get_global_transform"> World3D space (global) [Transform3D] of this node. </member> |