class ObjectContainer3D
package away3d.containers
extends Object3D › NamedAssetBase
implements IAsset
extended by Sound3D, Entity, TextureProjector, Loader3D
Available on all platforms
ObjectContainer3D is the most basic scene graph node. It can contain other ObjectContainer3Ds.
ObjectContainer3D can have its own scene partition assigned. However, when assigned to a different scene, it will loose any partition information, since partitions are tied to a scene.
Constructor
Variables
Methods
addChild(child:ObjectContainer3D):ObjectContainer3D
Adds a child ObjectContainer3D to the current object. The child's transformation will become relative to the current object's transformation.
Parameters:
child | The object to be added as a child. |
|---|
Returns:
A reference to the added child object.
addChildren(childarray:Vector<ObjectContainer3D>):Void
Adds an array of 3d objects to the scene as children of the container
Parameters:
...childarray | An array of 3d objects to be added |
|---|
clone():Object3D
Clones this ObjectContainer3D instance along with all it's children, and returns the result (which will be a copy of this container, containing copies of all it's children.)
disposeWithChildren():Void
Disposes the current ObjectContainer3D including all of its children. This is a merely a convenience method.
getChildAt(index:Int):ObjectContainer3D
Retrieves the child object at the given index.
Parameters:
index | The index of the object to be retrieved. |
|---|
Returns:
The child object at the given index.
removeChild(child:ObjectContainer3D):Void
Removes a 3d object from the child array of the container
Parameters:
child | The 3d object to be removed |
|---|
Throws:
Error | ObjectContainer3D.removeChild(null) |
|---|
removeChildAt(index:Int):Void
Removes a 3d object from the child array of the container
Parameters:
index | Index of 3d object to be removed |
|---|