I would like to know the coordinates of the left and right side of the actor, within the Y axis.

You are going to have to do some extra work to get the bounds depending on the actor rotation. I’m guessing you’ll want the left and right side no matter the orientation of the actor. If you just use actor bounds then once you start rotating the actor for instance 45 deg you will no longer get the side of the meshes

You would probably need to rely on get local bounds with some extra steps like shown here

The extent only has half of the distance so 50 and not a 100 because it’s extending from the origin (the center of the actor in this case). Think of it like the radius of a circle. It’s not the distance from edge to edge but from the origin to the side of the bounding box.

Something like this:


The centers of the debug boxes are the oriented points of the extremes of the mesh

Further changes in the code would depends on the use case. Are you rotating your components or scaling them etc.


For the full actor left and right:

Because the bounding box is not oriented you have to temporarily set the rotation to zero to get the bounds => cache it => revert rotation and then rotate the vector to get the final output

Simplified to just a function call:

1 Like