• Type Parameters

    • T extends "box3" | "sphere"

    Parameters

    • object3D: Object3D
    • boxOrSphereType: T

    Returns (T extends "box3"
        ? THREE.Box3
        : THREE.Sphere) | undefined