getActor bounds to get top centre?

Hi, I am trying to get the top centre, and base centre point of my Actor. I have:


FVector Origin;
FVector BoundsExtent;
Actor->GetActorBounds(false, Origin, BoundsExtent);

Which part of BoundsExtent can i use to find the 2 points that I need?

Thanks much.

I think easiest way would be to do this:



const FVector TopCenter = FVector(Origin + BoundsExtent.Max.Z);
const FVector BottomCenter = FVector(Origin - BoundsExtent.Min.Z);


Aha, that makes sense. Thank you! :slight_smile: