NullNode is a node that performs no space partitioning, but simply stores all objects in a list of leaf nodes. This partitioning system is most useful for simple content, or content that is always in the screen, such as a 3d user interface.

Constructor

new()

Creates a new NullNode object.

Inherited Variables

Defined by NodeBase

Inherited Methods

Defined by NodeBase

acceptTraverser(traverser:PartitionTraverser):Void

Allows the traverser to visit the current node. If the traverser's enterNode method returns true, the traverser will be sent down the child nodes of the tree. This method should be overridden if the order of traversal is important (such as for BSP trees) - or if static child nodes are not added using addNode, but are linked to separately.

Parameters:

traverser

The traverser visiting the node.

See also:

  • away3d.core.traverse.PartitionTraverser

findPartitionForEntity(entity:Entity):NodeBase

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

isInFrustum(planes:Vector<Plane3D>, numPlanes:Int):Bool

Tests if the current node is at least partly inside the frustum.

Parameters:

viewProjectionRaw

The raw data of the view projection matrix

Returns:

Whether or not the node is at least partly inside the view frustum.

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

Tests if the current node is intersecting with a ray.

Parameters:

rayPosition

The starting position of the ray

rayDirection

The direction vector of the ray

Returns:

Whether or not the node is at least partly intersecting the ray.