The EntityCollector class is a traverser for scene partitions that collects all scene graph entities that are considered potientially visible.

See also:

  • away3d.partition.Partition3D

  • away3d.partition.Entity

Constructor

new()

Creates a new EntityCollector object.

Variables

Methods

applyEntity(entity:Entity):Void

@inheritDoc

applyRenderable(renderable:IRenderable):Void

Adds an IRenderable object to the potentially visible objects.

Parameters:

renderable

The IRenderable object to add.

applySkyBox(renderable:IRenderable):Void

Adds a skybox to the potentially visible objects.

Parameters:

renderable

The skybox to add.

applyUnknownLight(light:LightBase):Void

Adds a light to the potentially visible objects.

Parameters:

light

The light to add.

cleanUp():Void

Cleans up any data at the end of a frame.

clear():Void

Clears all objects in the entity collector.

enterNode(node:NodeBase):Bool

Returns true if the current node is at least partly in the frustum. If so, the partition node knows to pass on the traverser to its children.

Parameters:

node

The Partition3DNode object to frustum-test.

Inherited Variables

Defined by PartitionTraverser

scene:Scene3D

The scene being traversed.

Inherited Methods