Constructor

@:value({ depth : 0, centerZ : 0, centerY : 0, centerX : 0, size : 10000, maxDepth : 5 })new(maxDepth:Int = 5, size:Float = 10000, centerX:Float = 0, centerY:Float = 0, centerZ:Float = 0, depth:Int = 0)

Methods

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

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.