How can I obtain the 3D coordinates of the bounding boxes produced in Unity per frame?
And/or (probably simpler and more useful), how can I obtain a bool to say when a Unity gameObject is within the bounding box?
How can I obtain the 3D coordinates of the bounding boxes produced in Unity per frame?
And/or (probably simpler and more useful), how can I obtain a bool to say when a Unity gameObject is within the bounding box?
Hi @a11s,
To get the bounding box, you have to use the DetectedObject’s Get3DWorldCorners() or Get3DWorldBounds() methods.
You could use the Bounds.Contains(point) method to check the inclusion if you get the bounds.