aboutsummaryrefslogtreecommitdiff
path: root/doc/classes/Spatial.xml
diff options
context:
space:
mode:
authorMel Collins2018-04-29 15:44:07 +0200
committerRémi Verschelde2018-05-08 09:07:52 +0200
commit33b78c0ad6a7e5d79714d31f24c7228452e484b0 (patch)
tree19698692716fbb50d3ecbf23985137c9be7378ab /doc/classes/Spatial.xml
parentfa19d01c7b84e5504c20d9a31bb3791b1cd4d122 (diff)
downloadgodot-33b78c0ad6a7e5d79714d31f24c7228452e484b0.tar.gz
godot-33b78c0ad6a7e5d79714d31f24c7228452e484b0.tar.zst
godot-33b78c0ad6a7e5d79714d31f24c7228452e484b0.zip
[DOCS] Clarify look_at and looking_at
(cherry picked from commit b431264f773f250a580d6c61fa7858fca3833bf0)
Diffstat (limited to 'doc/classes/Spatial.xml')
-rw-r--r--doc/classes/Spatial.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/classes/Spatial.xml b/doc/classes/Spatial.xml
index 6171ee3ab..225639d6e 100644
--- a/doc/classes/Spatial.xml
+++ b/doc/classes/Spatial.xml
@@ -99,7 +99,9 @@
<argument index="1" name="up" type="Vector3">
</argument>
<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>
</method>
<method name="look_at_from_position">
@@ -112,7 +114,7 @@
<argument index="2" name="up" type="Vector3">
</argument>
<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>
</method>
<method name="orthonormalize">