The Scene3D class represents an independent 3D scene in which 3D objects can be created and manipulated.
Multiple Scene3D instances can be created in the same SWF file.
Scene management happens through the scene graph, which is exposed using addChild and removeChild methods.
Internally, the Scene3D object also manages any space partition objects that have been assigned to objects in
the scene graph, of which there is at least 1.
numChildren:uint
[read-only]
The amount of children directly contained by the scene.
Implementation
public function get numChildren():uint
partition:Partition3D
[read-write]
The root partition to be used by the Scene3D.
Implementation
public function get partition():Partition3D
public function set partition(value:Partition3D):void
public function Scene3D()
Init Parameters
public function addChild(child:ObjectContainer3D):ObjectContainer3D
Adds a child to the scene's root.
Parameters
Returns
protected function addPartitionUnique(partition:Partition3D):void
Add a partition if it's not in the list
Parameters
public function getChildAt(index:uint):ObjectContainer3D
Retrieves the child with the given index
Parameters
| index:uint — The index for the child to be retrieved.
|
Returns
arcane function invalidateEntityBounds(entity:Entity):void
When an entity has moved or changed size, update its position in its partition tree.
Parameters
arcane function registerPartition(entity:Entity):void
When a partition is assigned to an object somewhere in the scene graph, add the partition to the list if it isn't in there yet
Parameters
public function removeChild(child:ObjectContainer3D):void
Removes a child from the scene's root.
Parameters
public function traversePartitions(traverser:PartitionTraverser):void
Sends a PartitionTraverser object down the scene partitions
Parameters
See also
arcane function unregisterPartition(entity:Entity):void
When a partition is removed from an object somewhere in the scene graph, remove the partition from the list if it isn't in there yet
Parameters