Explain to me what "Get Component Bounds" does exactly

I’m pretty sure the BoxExtent vector returns half the size of the smallest box that fits the StaticMesh. I’d say the SphereRadius is the same thing, but applying the smallest sphere.
Not sure about Origin though.

Hi,
I just need someone to thoroughly explain to me what the outputs of the (Get Component Bounds) do, namely the Origin vector, the Box Extent vector, and the Sphere Radius float. What does each one of them represent?

If you can afford including an example please do so.

But if BoxExtent is just a size indicator shouldn’t it be a float instead of a vector?

Half the size in the form of a Vector :stuck_out_tongue: So if your Static Mesh is 10x10x10, you’ll get a Vector (5,5,5), if I’m not mistaken.

all box extents are vectors because not all boxes are cubes, some are longer on different axis. origin is the center point of the box or sphere, the same as if you were to place a trigger box in a level.

Origin is the centre of the box, Box Extent is the half size of the box and sphere radius is the smallest sphere that can fit inside the box.

2 Likes

It looks like Box Extent is the full size of the box, not half. So if your box is 10x10x10, Box extent gives you 10x10x10.

Actually, it is half the size of the box. You can try it this way.

1 Like

Hi guy,you are so good!

Is the Box Extent a local or world value?

seems to be in world space