未验证 提交 936f3e60 编写于 作者: A Andreas Plesch 提交者: GitHub

[doc]: SceneUtils: .attach parameters

Makes the scene and parent parameters signature of the attach() method consistent with the explanation.
Minor grammar improvement by making sentences complete.
上级 771b015e
......@@ -29,11 +29,11 @@
<h3>[method:null attach]( [param:Object3D child], [param:Object3D scene], [param:Object3D parent] )</h3>
<p>
child -- The object to add to the parent <br />
scene -- The scene to detach the object on. <br />
parent -- The parent to attach the object from.
scene -- The scene to detach the object from. <br />
parent -- The parent to attach the object to.
</p>
<p>
Attaches the object to the parent without the moving the object in the worldspace. Beware that to do this the matrixWorld needs to be updated, this can be done by calling the updateMatrixWorld method on the parent object.
Attaches the object to the parent without the moving the object in the worldspace. Beware that to do this the matrixWorld needs to be updated. This can be done by calling the updateMatrixWorld method on the parent object.
</p>
<h3>[method:null detach]( [param:Object3D child], [param:Object3D parent], [param:Object3D scene] )</h3>
......@@ -43,7 +43,7 @@
parent -- The parent to detach the object from.
</p>
<p>
Detaches the object from the parent and adds it back to the scene without moving in worldspace. Beware that to do this the matrixWorld needs to be updated, this can be done by calling the updateMatrixWorld method on the parent object.
Detaches the object from the parent and adds it back to the scene without moving in worldspace. Beware that to do this the matrixWorld needs to be updated. This can be done by calling the updateMatrixWorld method on the parent object.
</p>
<h2>Source</h2>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册