[DOCS] Clarify look_at and looking_at

(cherry picked from commit b431264f77)
This commit is contained in:
Mel Collins 2018-04-29 15:44:07 +02:00 committed by Rémi Verschelde
parent fa19d01c7b
commit 33b78c0ad6
2 changed files with 7 additions and 3 deletions

View file

@ -99,7 +99,9 @@
<argument index="1" name="up" type="Vector3"> <argument index="1" name="up" type="Vector3">
</argument> </argument>
<description> <description>
Rotates itself to point into direction of target position. Operations take place in global space. Rotates itself so that the local -Z axis points towards the [code]target[/code] position.
The transform will first be rotated around the given [code]up[/code] vector, and then fully aligned to the target by a further rotation around an axis perpendicular to both the [code]target[/code] and [code]up[/code] vectors.
Operations take place in global space.
</description> </description>
</method> </method>
<method name="look_at_from_position"> <method name="look_at_from_position">
@ -112,7 +114,7 @@
<argument index="2" name="up" type="Vector3"> <argument index="2" name="up" type="Vector3">
</argument> </argument>
<description> <description>
Moves the node to specified position and then rotates itself to point into direction of target position. Operations take place in global space. Moves the node to the specified [code]position[/code], and then rotates itself to point toward the [code]target[/code] as per [method look_at]. Operations take place in global space.
</description> </description>
</method> </method>
<method name="orthonormalize"> <method name="orthonormalize">

View file

@ -99,7 +99,9 @@
<argument index="1" name="up" type="Vector3"> <argument index="1" name="up" type="Vector3">
</argument> </argument>
<description> <description>
Rotate the transform around the up vector to face the target. Returns a copy of the transform rotated such that its -Z axis points towards the [code]target[/code] position.
The transform will first be rotated around the given [code]up[/code] vector, and then fully aligned to the target by a further rotation around an axis perpendicular to both the [code]target[/code] and [code]up[/code] vectors.
Operations take place in global space.
</description> </description>
</method> </method>
<method name="orthonormalized"> <method name="orthonormalized">