/// /// <summary> /// Remove all objects within this node region /// </summary> /// public void ClearObjects() { InternalObjectBoundingBoxes.Clear(); InternalObjectPositions.Clear(); }
/// /// <summary> /// Add an object to the node's internal storage (this object should intersect the node's bounding box) /// </summary> /// /// <param name="objectPosition"> /// The position of the object (centroid) /// </param> /// /// <param name="objectBoundingBox"> /// The bounding box of the object /// </param> /// public void AddObject(Vector3 objectPosition, BoundingBox objectBoundingBox) { InternalObjectPositions.Add(objectPosition); InternalObjectBoundingBoxes.Add(objectBoundingBox); }