From 33b78c0ad6a7e5d79714d31f24c7228452e484b0 Mon Sep 17 00:00:00 2001 From: Mel Collins Date: Sun, 29 Apr 2018 15:44:07 +0200 Subject: [PATCH] [DOCS] Clarify look_at and looking_at (cherry picked from commit b431264f773f250a580d6c61fa7858fca3833bf0) --- doc/classes/Spatial.xml | 6 ++++-- doc/classes/Transform.xml | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/classes/Spatial.xml b/doc/classes/Spatial.xml index 6171ee3ab24..225639d6e8b 100644 --- a/doc/classes/Spatial.xml +++ b/doc/classes/Spatial.xml @@ -99,7 +99,9 @@ - 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. @@ -112,7 +114,7 @@ - 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. diff --git a/doc/classes/Transform.xml b/doc/classes/Transform.xml index e19334900c3..ea8c7acb833 100644 --- a/doc/classes/Transform.xml +++ b/doc/classes/Transform.xml @@ -99,7 +99,9 @@ - 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.