InvertedOctreeNode is an octree data structure not used hierarchically for culling, but for fast dynamic insertion. The data structure is essentially a grid, but "overarching" parent container nodes for entities striding across nodes. If this is visible, so is the parent. Traversal happens invertedly too.

Constructor

new(minBounds:Vector3D, maxBounds:Vector3D)

Methods

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.

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.