Get mesh only bounds of hit actor

I am doing a line trace to hit an actor. Then I want to get the bounds of that actor’s mesh. I can get the bounds of the whole actor (Hit Actor > Get Actor Bounds), but the actor has collision boxes outside the dimensions of the mesh. I could simply subtract the size of the outside collision box, and that works. However, I do not want to count on those boxes being the same size for every actor that may be hit by the trace. How do I get the bounds of just the static mesh of the hit actor?

:innocent:

2 Likes

Thank you, that was exactly what I was looking for. Unfortunately, when using this, I found that my approach will not work at all and I HAVE to use the full bounds with boxes. A couple of the objects’ meshes will not be completely symmetrical in relation to the origin of the complete actor (with external collision boxes).

Instead, I have to make sure the external collision boxes are all the same size and if a collision box is only on one side, I have to add one on the other side that is set to ignore all channels.

1 Like