antithing
(antithing)
1
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.
Jambax
(Jambax)
2
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);
antithing
(antithing)
3
Aha, that makes sense. Thank you!