insert

Octree::insert

Inserts an element in the Octree.

Declaration

template <typename T>
void insert(T object, const Math::vec3& objectPosition, const Math::vec3& objectSize);

Parameters

Name

Type

Description

object

T

The object to add to the octree.

objectPosition

Math::vec3

The center of the object’s AABB to add to the octree.

objectSize

Math::vec3

Half the size of the object’s AABB, on each axis (x, y and z), to add to the octree.

Returns

None.