I’m using UE4 4.26.1.
Hi! I’m having difficulty retrieving the exact bounds of a custom static mesh. As a demonstration, I’m rotating two objects diagonally. I using this logic draw the bounds:
In my game, I require the drawn debug box’s extent’s Y to be elongated to 1600 and the it’s rotation to be absolute:
On the left is my custom mesh and on the right is a generic box. As you can see, the bounds doesn’t quite match the custom mesh on the left, while the generic box mesh is shaped perfectly.
The collision for my custom mesh is very simple. I tried deleting that simple sphere collider, but that didn’t make a difference.
I’ve tried using “Get Local Bounds” and it seems to return a better representation of the bounds of my custom mesh:
However, since I’m required to elongate the debug box’s Y axis and lock the rotation, I’m struggling getting the the drawn bounds rotated correctly.
What can I do here? Let me know if you require any additional information.