How to fill gap between objects by moving neighboring objects?
Lets say you have a shelf filled with books and you want to replace a large book with a thin book object (within the editor - not during gameplay). If you replace the mesh, there will be a gap in space on either side. How can I go about shifting all the books on both sides to close the gap? Likewise, how would you shift all the neighboring book objects if you replace one of them with a larger mesh, resulting in overlapping meshes. I would assume putting all the meshes into an array and use a foreach loop to move the objects (except the replaced mesh) the same value to the left or right of the object, but what would you use to determine the gap/overlapping space? Bounding box? Collision box?
asked Jun 23 '18 at 12:04 AM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here