|
@@ -9,39 +9,40 @@
|
|
<body>
|
|
<body>
|
|
<h1>[name]</h1>
|
|
<h1>[name]</h1>
|
|
|
|
|
|
- <div class="desc">todo</div>
|
|
|
|
|
|
+ <div class="desc">A class containing usefull utility functions for scene manipulation.</div>
|
|
|
|
|
|
|
|
|
|
<h2>Methods</h2>
|
|
<h2>Methods</h2>
|
|
|
|
|
|
|
|
|
|
- <h3>.createMultiMaterialObject([page:todo geometry], [page:todo materials]) [page:todo]</h3>
|
|
|
|
|
|
+ <h3>.createMultiMaterialObject([page:Geometry geometry], [page:Array materials]) [page:Object3D]</h3>
|
|
<div>
|
|
<div>
|
|
- geometry -- todo <br />
|
|
|
|
- materials -- todo
|
|
|
|
|
|
+ geometry -- The geometry for the Object. <br />
|
|
|
|
+ materials -- The materials for the object.
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
- todo
|
|
|
|
|
|
+ Creates an new Object3D an new mesh for each material defined in materials. Beware that this is not the same as Meshfacematerial which defines multiple material for 1 mesh.<br />
|
|
|
|
+ This is mostly useful for object that need a material and a wireframe implementation.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <h3>.attach([page:todo child], [page:todo scene], [page:todo parent]) [page:todo]</h3>
|
|
|
|
|
|
+ <h3>.attach([page:Object3D child], [page:Object3D scene], [page:Object3D parent])</h3>
|
|
<div>
|
|
<div>
|
|
- child -- todo <br />
|
|
|
|
- scene -- todo <br />
|
|
|
|
- parent -- todo
|
|
|
|
|
|
+ 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.
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
- todo
|
|
|
|
|
|
+ Attaches the object to the parent without the moving the object in the worldspace.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <h3>.detach([page:todo child], [page:todo parent], [page:todo scene]) [page:todo]</h3>
|
|
|
|
|
|
+ <h3>.detach([page:Object3D child], [page:Object3D parent], [page:Object3D scene])</h3>
|
|
<div>
|
|
<div>
|
|
- child -- todo <br />
|
|
|
|
- parent -- todo <br />
|
|
|
|
- scene -- todo
|
|
|
|
|
|
+ child -- The object to remove from the parent <br />
|
|
|
|
+ scene -- The scene to attach the object on. <br />
|
|
|
|
+ parent -- The parent to detach the object from.
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
- todo
|
|
|
|
|
|
+ Detaches the object from the parent and adds it back to the scene without moving in worldspace.
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<h2>Source</h2>
|
|
<h2>Source</h2>
|