Skip to content

Commit 5cafb12

Browse files
aardgoosemrdoob
authored andcommitted
document object3d.getWorld* methods (mrdoob#8932)
* document object3d.getWorld* methods * added full description of nature of optional parameters * minor clarification
1 parent 67b0e3d commit 5cafb12

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

docs/api/core/Object3D.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,46 @@ <h3>[method:Object3D getObjectById]([page:Integer id])</h3>
272272
Searches through the object's children and returns the first with a matching id.
273273
</div>
274274

275+
<h3>[method:Vector3 getWorldPosition]([page:Vector3 optionalTarget])</h3>
276+
<div>
277+
optionalTarget — Optional target to set the result. Otherwise, a new `Vector3` is instantiated. (optional)<br />
278+
</div>
279+
<div>
280+
Returns a vector representing the position of the object in world space.
281+
</div>
282+
283+
<h3>[method:Quaternion getWorldQuaternion]([page:Quaternion optionalTarget])</h3>
284+
<div>
285+
optionalTarget — Optional target to set the result. Otherwise, a new `Quaternion` is instantiated. (optional)<br />
286+
</div>
287+
<div>
288+
Returns a quaternion representing the rotation of the object in world space.
289+
</div>
290+
291+
<h3>[method:Euler getWorldRotation]([page:Euler optionalTarget])</h3>
292+
<div>
293+
optionalTarget — Optional target to set the result. Otherwise, a new `Euler` is instantiated. (optional)<br />
294+
</div>
295+
<div>
296+
Returns the euler angles representing the rotation of the object in world space.
297+
</div>
298+
299+
<h3>[method:Vector3 getWorldScale]([page:Vector3 optionalTarget])</h3>
300+
<div>
301+
optionalTarget — Optional target to set the result. Otherwise, a new `Vector3` is instantiated. (optional)<br />
302+
</div>
303+
<div>
304+
Returns a vector of the scaling factors applied to the object for each axis in world space.
305+
</div>
306+
307+
<h3>[method:Vector3 getWorldDirection]([page:Vector3 optionalTarget])</h3>
308+
<div>
309+
optionalTarget — Optional target to set the result. Otherwise, a new `Vector3` is instantiated. (optional)<br />
310+
</div>
311+
<div>
312+
Returns a vector representing the direction of object's positive z-axis in world space.
313+
</div>
314+
275315
<h3>[method:Object3D translateOnAxis]([page:Vector3 axis], [page:Float distance])</h3>
276316
<div>
277317
axis -- A normalized vector in object space.<br />

0 commit comments

Comments
 (0)