mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 05:33:11 +00:00
Fix incorrect Transform2D docs
The y vector of a transform 2d was incorrectly described as pointing up.
This commit is contained in:
parent
b3bcb2dc14
commit
9cf6cb010e
@ -251,14 +251,14 @@
|
|||||||
</member>
|
</member>
|
||||||
<member name="y" type="Vector2" setter="" getter="" default="Vector2(0, 1)">
|
<member name="y" type="Vector2" setter="" getter="" default="Vector2(0, 1)">
|
||||||
The transform basis's Y axis, and the column [code]1[/code] of the matrix. Combined with [member x], this represents the transform's rotation, scale, and skew.
|
The transform basis's Y axis, and the column [code]1[/code] of the matrix. Combined with [member x], this represents the transform's rotation, scale, and skew.
|
||||||
On the identity transform, this vector points up ([constant Vector2.UP]).
|
On the identity transform, this vector points down ([constant Vector2.DOWN]).
|
||||||
</member>
|
</member>
|
||||||
</members>
|
</members>
|
||||||
<constants>
|
<constants>
|
||||||
<constant name="IDENTITY" value="Transform2D(1, 0, 0, 1, 0, 0)">
|
<constant name="IDENTITY" value="Transform2D(1, 0, 0, 1, 0, 0)">
|
||||||
The identity [Transform2D]. A transform with no translation, no rotation, and its scale being [code]1[/code]. When multiplied by another [Variant] such as [Rect2] or another [Transform2D], no transformation occurs. This means that:
|
The identity [Transform2D]. A transform with no translation, no rotation, and its scale being [code]1[/code]. When multiplied by another [Variant] such as [Rect2] or another [Transform2D], no transformation occurs. This means that:
|
||||||
- The [member x] points right ([constant Vector2.RIGHT]);
|
- The [member x] points right ([constant Vector2.RIGHT]);
|
||||||
- The [member y] points up ([constant Vector2.UP]).
|
- The [member y] points down ([constant Vector2.DOWN]).
|
||||||
[codeblock]
|
[codeblock]
|
||||||
var transform = Transform2D.IDENTITY
|
var transform = Transform2D.IDENTITY
|
||||||
print("| X | Y | Origin")
|
print("| X | Y | Origin")
|
||||||
|
Loading…
Reference in New Issue
Block a user