Minimum/Tight Oriented Bounding Boxes

Does anyone know how to get the Minimum/Tight Oriented Bounding Box. The bounding box returned by most functions is an AABB, axis-aligned bounding box. I need to get the minimum/tight oriented bounding box. Am I missing a call somewhere? I have tried most I can find all return AABB.

Is there a reason it’s not an option to store the projectile’s bounding box in ConstructionScript or BeginPlay when it has the default rotation, and use this value later?

I think that’d be your best option.

This is not remotely an answer. You are suggesting storing the AABB. This is not a minimum OBB. Also, we are not talking about projectiles. Need to compute OBB for any arbitrary actor. Of course once computed they would be cached but as of now there is no built in way to compute. For about 99.99% of the actors in our scenes the local coordinates or “default rotation” as you call it would not have the AABB !=OBB.

I can’t know your specific use-case, there are many cases it might work.

Anyways, it’s the only built-in possibility I see right now, so if it does not work in your case, you’ll probably have to calculate it yourself.

Is there an implementation of Minimum OOBB on UE4?

UKismetMathLibrary::MinimumAreaRectangle

1 Like