Basically I have 2 static mesh actors, The first actor can be moved around the map and the second actor follows the first actor at an offset.
To get this offset I need to know the value of size of the first actors static mesh as it can be changed at run time and I don’t want the second actor to ever collide with the first.
So how do I go about getting the first actors static mesh size?
/**
* Returns the bounding box of all components that make up this Actor.
* @param bOnlyCollidingComponents If TRUE, will only return the bounding box for components with collision enabled.
*/
UFUNCTION(BlueprintCallable, Category="Collision", meta=(FriendlyName = "GetActorBounds"))
void GetActorBounds(bool bOnlyCollidingComponents, FVector& Origin, FVector& BoxExtent) const;