From 3398fb77a915d3f6d7a3dc6bf2398840c696365b Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Fri, 10 Jun 2022 00:56:35 -0500 Subject: Document limitations of negative scales in 2D and 3D --- doc/classes/Node2D.xml | 1 + doc/classes/Node3D.xml | 1 + doc/classes/Transform2D.xml | 1 + 3 files changed, 3 insertions(+) diff --git a/doc/classes/Node2D.xml b/doc/classes/Node2D.xml index bb73019668..ed753c8da1 100644 --- a/doc/classes/Node2D.xml +++ b/doc/classes/Node2D.xml @@ -113,6 +113,7 @@ The node's scale. Unscaled value: [code](1, 1)[/code]. + [b]Note:[/b] Negative X scales in 2D are not decomposable from the transformation matrix. Due to the way scale is represented with transformation matrices in Godot, negative scales on the X axis will be changed to negative scales on the Y axis and a rotation of 180 degrees when decomposed. diff --git a/doc/classes/Node3D.xml b/doc/classes/Node3D.xml index 4444416a06..ac434af4fa 100644 --- a/doc/classes/Node3D.xml +++ b/doc/classes/Node3D.xml @@ -302,6 +302,7 @@ Scale part of the local transformation. + [b]Note:[/b] Mixed negative scales in 3D are not decomposable from the transformation matrix. Due to the way scale is represented with transformation matrices in Godot, the scale values will either be all positive or all negative. If [code]true[/code], the node will not inherit its transformations from its parent. Node transformations are only in global space. diff --git a/doc/classes/Transform2D.xml b/doc/classes/Transform2D.xml index 8c2a5aa6d9..e1f7ff21d0 100644 --- a/doc/classes/Transform2D.xml +++ b/doc/classes/Transform2D.xml @@ -163,6 +163,7 @@ Sets the transform's scale. + [b]Note:[/b] Negative X scales in 2D are not decomposable from the transformation matrix. Due to the way scale is represented with transformation matrices in Godot, negative scales on the X axis will be changed to negative scales on the Y axis and a rotation of 180 degrees when decomposed. -- cgit v1.2.3