From 5cafb1263695a0137e6a3ca5d73735794ba85ffe Mon Sep 17 00:00:00 2001 From: aardgoose Date: Fri, 20 May 2016 18:07:39 +0100 Subject: [PATCH] document object3d.getWorld* methods (#8932) * document object3d.getWorld* methods * added full description of nature of optional parameters * minor clarification --- docs/api/core/Object3D.html | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/docs/api/core/Object3D.html b/docs/api/core/Object3D.html index eb75024404..12b51afa98 100644 --- a/docs/api/core/Object3D.html +++ b/docs/api/core/Object3D.html @@ -272,6 +272,46 @@ Searches through the object's children and returns the first with a matching id. +

[method:Vector3 getWorldPosition]([page:Vector3 optionalTarget])

+
+ optionalTarget — Optional target to set the result. Otherwise, a new `Vector3` is instantiated. (optional)
+
+
+ Returns a vector representing the position of the object in world space. +
+ +

[method:Quaternion getWorldQuaternion]([page:Quaternion optionalTarget])

+
+ optionalTarget — Optional target to set the result. Otherwise, a new `Quaternion` is instantiated. (optional)
+
+
+ Returns a quaternion representing the rotation of the object in world space. +
+ +

[method:Euler getWorldRotation]([page:Euler optionalTarget])

+
+ optionalTarget — Optional target to set the result. Otherwise, a new `Euler` is instantiated. (optional)
+
+
+ Returns the euler angles representing the rotation of the object in world space. +
+ +

[method:Vector3 getWorldScale]([page:Vector3 optionalTarget])

+
+ optionalTarget — Optional target to set the result. Otherwise, a new `Vector3` is instantiated. (optional)
+
+
+ Returns a vector of the scaling factors applied to the object for each axis in world space. +
+ +

[method:Vector3 getWorldDirection]([page:Vector3 optionalTarget])

+
+ optionalTarget — Optional target to set the result. Otherwise, a new `Vector3` is instantiated. (optional)
+
+
+ Returns a vector representing the direction of object's positive z-axis in world space. +
+

[method:Object3D translateOnAxis]([page:Vector3 axis], [page:Float distance])

axis -- A normalized vector in object space.
-- GitLab