Closed NataliaDobosz closed 3 years ago
Hi! Geometry's BoundingBox()
computes the axis-aligned bounding box in the geometry's reference frame.
If you transform the object that is using that geometry and you want to find the axis-aligned bounding box in the global reference frame you need to apply the world matrix. Here's an example of how we do this in the renderer:
Does BoundigBox() method for Geometry type calculates axis-aligned or object oriented bounding box?