The RaycastCollector class is a traverser for scene partitions that collects all scene graph entities that are considered intersecting with the defined ray.

See also:

  • away3d.partition.Partition3D

  • away3d.partition.Entity

Constructor

new()

Creates a new RaycastCollector object.

Variables

rayDirection:Vector3D

rayPosition:Vector3D

Methods

applyRenderable(renderable:IRenderable):Void

Adds an IRenderable object to the potentially visible objects.

Parameters:

renderable

The IRenderable object to add.

applySkyBox(renderable:IRenderable):Void

@inheritDoc

applyUnknownLight(light:LightBase):Void

@inheritDoc

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

Inherited Methods

Defined by EntityCollector

applyEntity(entity:Entity):Void

@inheritDoc

cleanUp():Void

Cleans up any data at the end of a frame.

clear():Void

Clears all objects in the entity collector.