The EntityNode class provides an abstract base class for leaf nodes in a partition tree, containing entities to be fed to the EntityCollector traverser. The concrete subtype of Entity is responsible for creating a matching subtype of EntityNode.

See also:

  • away3d.scenegraph.Entity

  • away3d.core.traverse.EntityCollector

Constructor

new(entity:Entity)

Creates a new EntityNode object.

Parameters:

entity

The Entity to be contained in this leaf node.

Variables

read onlyentity:Entity

Methods

acceptTraverser(traverser:PartitionTraverser):Void

@inheritDoc

isIntersectingRay(rayPosition:Vector3D, rayDirection:Vector3D):Bool

@inheritDoc

removeFromParent():Void

Detaches the node from its parent.

Inherited Variables

Defined by NodeBase

Inherited Methods

Defined by NodeBase

findPartitionForEntity(entity:Entity):NodeBase

Finds the partition that contains (or should contain) the given entity.