未验证 提交 4ed670b0 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #15205 from andreasplesch/patch-1

[doc]: SceneUtils: .attach parameters
...@@ -29,11 +29,11 @@ ...@@ -29,11 +29,11 @@
<h3>[method:null attach]( [param:Object3D child], [param:Object3D scene], [param:Object3D parent] )</h3> <h3>[method:null attach]( [param:Object3D child], [param:Object3D scene], [param:Object3D parent] )</h3>
<p> <p>
child -- The object to add to the parent <br /> child -- The object to add to the parent <br />
scene -- The scene to detach the object on. <br /> scene -- The scene to detach the object from. <br />
parent -- The parent to attach the object from. parent -- The parent to attach the object to.
</p> </p>
<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> </p>
<h3>[method:null detach]( [param:Object3D child], [param:Object3D parent], [param:Object3D scene] )</h3> <h3>[method:null detach]( [param:Object3D child], [param:Object3D parent], [param:Object3D scene] )</h3>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
parent -- The parent to detach the object from. parent -- The parent to detach the object from.
</p> </p>
<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> </p>
<h2>Source</h2> <h2>Source</h2>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册