Automatically scale of master field box shape based on parent actor

Hello people,

I have to bother you with my noob questions again,

I am trying to automatically set the master field box shape size to that of the actor I attached it to which can be any arbitrary geometry collection I generated from any arbitrary 3D asset.

For that I needed to do 3 things:

  1. Set the world location to the origin aka center of an actor in the world which seems to work fine.

  2. FIX the initial scale somehow because for some reason the initial scale when dragging the actor into another and making it its child, the master fields scale is not 1.0 across the board instead its some value that makes the box equally as large initially in absolute value anywhere you put it. So if your parent actor is large the scale value intially is low.

    → setting that scale to 1.0 at begin play does not seem to work.

  3. Scale the master field up to the size of the parent actor based on relating the absolute bounds of both actors → does work partially.

For 2 Masterfield Blueprint:

You can see here I attempt to just set the scale to 1.0 immediately of the box volume.
Doesn’t seem to have any effect. What node would one want to use? To set this value:

For 3 also masterfield blueprint:


I then attempt to calculate the scale difference and just set that scale on the masterfield.

Which worked fine with objects I created inside unreal via the “Modeling” tool.

However:

This asset: Industrial Brick Ruin Wall Brick Straight 02 | Fab
You can see on the bottom right, does seem to have Y and Z axises swapped.

So my two questions as a noob here would be:

  1. Which node (tried many different ones relating to “scale”) would one use to set the scale that masterfields box shape to 1.0 automatically which seems to by default relate to the parent actor and attempt to achieve the Box Volume initial absolute size setting and therefore not start at 1.0?

  2. How can one fix an apparently accidentally swapped Axis of an imported 3D asset inside unreal? I have absolutely zero clue about modelling etc.

and maybe 3. Since the goal is:
→ I just take this reusable actor, drag it onto any arbitrary fractured 3D asset actor
→ it shapeshifts the master field to the actors dimensions (or a factor beyond them)

given I am a developer (not games tho obviously) not a designer, would it be wiser to just attempt doing this in C++ instead of this blueprint stuff?

Thanks a lot in advance for any help <3

Ok… Try to figure out your code with simpler setup.

If you have errors, scale discrepancies, turned axis, etc. it will be very hard to figure out weather your code works or not.

This is my initial setup and the two objects:

This is my function called in BeginPlay for the ring:

This is the result:

The fixing of the axis is just taking the parent with swapped axis and then rotating your child object properly.