class NodeBase
package away3d.core.partition
extended by EntityNode, InvertedOctreeNode, NullNode, OctreeNode, QuadTreeNode, ViewVolume, ViewVolumeRootNode
Available on all platforms
The NodeBase class is an abstract base class for any type of space partition tree node. The concrete subtype will control the creation of its child nodes, which are necessarily of the same type. The exception is the creation of leaf entity nodes, which is handled by the Partition3D class.
See also:
away3d.partition.EntityNode
away3d.partition.Partition3D
away3d.containers.Scene3D
Constructor
Variables
Methods
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.