Location difference between root and static mesh
I think I am having a fairly rare problem, in that I would need to figure if there is any way to get the location of the mesh model as it is in level and not the root. Let's say, I have an object that when its root is placed at Location 0, 0, 0, it's static mesh is at location 20, 20, 0, hence clearly offset from root. Is there any way I can get a reference to the location of the static mesh (20, 20, 0) and not the root (0, 0, 0) or their difference?
I would need to figure this out as I have models that are imported to UE from external program where their position has to be exact in their alignment to one another, as I have no other way to set their exact location on the level or import data concerning it.
Tips are as always much appreciated!
asked Apr 08 '19 at 01:45 PM in Blueprint Scripting
the simplest method would be to have a reference to the component (your mesh) that your looking to target then use the get world location node.
beyond that there are methods which use math to calculate the location of the component based on the actors location and the relative location but the first method is much simpler.
answered Apr 08 '19 at 03:50 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here