LightNode is a space partitioning leaf node that contains a LightBase object. Used for lights that are not of default supported type.

Constructor

new(light:LightBase)

Creates a new LightNode object.

Parameters:

light

The light to be contained in the node.

Variables

read onlylight:LightBase

Methods

acceptTraverser(traverser:PartitionTraverser):Void

@inheritDoc

Inherited Variables

Defined by EntityNode

read onlyentity:Entity

Defined by NodeBase

Inherited Methods

Defined by EntityNode

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

@inheritDoc

removeFromParent():Void

Detaches the node from its parent.

Defined by NodeBase

findPartitionForEntity(entity:Entity):NodeBase

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