提交 5cafb126 编写于 作者: A aardgoose 提交者: Mr.doob

document object3d.getWorld* methods (#8932)

* document object3d.getWorld* methods

* added full description of nature of optional parameters

* minor clarification
上级 67b0e3db
......@@ -272,6 +272,46 @@
Searches through the object's children and returns the first with a matching id.
</div>
<h3>[method:Vector3 getWorldPosition]([page:Vector3 optionalTarget])</h3>
<div>
optionalTarget — Optional target to set the result. Otherwise, a new `Vector3` is instantiated. (optional)<br />
</div>
<div>
Returns a vector representing the position of the object in world space.
</div>
<h3>[method:Quaternion getWorldQuaternion]([page:Quaternion optionalTarget])</h3>
<div>
optionalTarget — Optional target to set the result. Otherwise, a new `Quaternion` is instantiated. (optional)<br />
</div>
<div>
Returns a quaternion representing the rotation of the object in world space.
</div>
<h3>[method:Euler getWorldRotation]([page:Euler optionalTarget])</h3>
<div>
optionalTarget — Optional target to set the result. Otherwise, a new `Euler` is instantiated. (optional)<br />
</div>
<div>
Returns the euler angles representing the rotation of the object in world space.
</div>
<h3>[method:Vector3 getWorldScale]([page:Vector3 optionalTarget])</h3>
<div>
optionalTarget — Optional target to set the result. Otherwise, a new `Vector3` is instantiated. (optional)<br />
</div>
<div>
Returns a vector of the scaling factors applied to the object for each axis in world space.
</div>
<h3>[method:Vector3 getWorldDirection]([page:Vector3 optionalTarget])</h3>
<div>
optionalTarget — Optional target to set the result. Otherwise, a new `Vector3` is instantiated. (optional)<br />
</div>
<div>
Returns a vector representing the direction of object's positive z-axis in world space.
</div>
<h3>[method:Object3D translateOnAxis]([page:Vector3 axis], [page:Float distance])</h3>
<div>
axis -- A normalized vector in object space.<br />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册