Hey guys,
I'm trying to make a blueprint in Unreal Engine that will create static mesh array and place them on top of pedestal.
I describe overall logic like this:
- add meshes as components to blueprint
- define tag for meshes that will be top of the pedestal
- in construction script make array from components with specified tag
- get bounds for every mesh in array
- move each mesh of the array to new location relative to previous mesh in the array, vector value based on bounds of the meshes(i.e. big mesh will move farther than small one, in this way distance between meshes will not be constant)
- add pedestal to new location of each mesh
- place each mesh on top of their pedestal
So
question is how to move object to new position relative to previous
object in array? And how to duplicate mesh and move it to new position
via blueprint(i.e. place pedestal below every mesh in array)?
I
only managed to make blueprint that place mesh on top of the pedestal
and scale the pedestal to fit mesh bounds. But problem is that it works
fine only for one mesh.
Here is blueprints:
BP_PedestalBP_Array - little help here, because it move every index in array compare to scene root
Thank you.
Replies
Changed topic title to to avoid misunderstanding.