Object-oriented bounding box (from either AActor or mesh)
I'm using C++ and trying to do a sphere trace after an arbitrarily-sized projectile hits its target, in order to find the projectile's entry point. For the sphere trace, I must know the radius of the projectile, which is dynamic and can be a rock, an arrow, etc.
I've read about bounding boxes, and used GetActorBounds and other ways to get the bounds of the projectile, including getting an FBox struct from the mesh's "Bounds" attribute, but bounds seem to be axis-aligned in all cases (AABB), which means that they don't represent the true size of the object, and change with its orientation.
Is there a way to obtain an "object-oriented" bounding box that returns the true size of the object, disregarding orientation? An FOrientedBox struct exists, but I've found no way to get one from the actor or mesh, so it might not be possible.
Additionally, if the above is impossible, is there a way to get, at runtime, the approximate size of a mesh, as reported in the mesh editor?
Follow this question
Once you sign in you will be able to subscribe for any updates here