Blueprint with 3 static mehses rotates correctly, but does not keep to the position shown in editor

Hi,

When I rotate the BP in the editor the static meshes stay in place, but rotate in the same position.

I have a blueprint when entered 3 separate walls will appear and raises from the ground. This is how I placed it by default when dragged into the level. (See Pic 1)

248024-pic-1.jpg

When I rotate the BP and trigger it, the static meshes are not in the correct place / alligned? (See Pic 2 and Pic 3)

248025-pic-2.jpg

248026-pic-3.jpg

This is my current blueprint setup, and each individual wall is the same. (See Pic 4)

it’s probably because you taking Actor location instead of Component location for Set World Location node. You can use add location node or query component location. Hope it helps :slight_smile:

Hm, I was sure it’s the problem. Did anything changed, and if yes how it did? Can you confirm: You tried to get your Wall Static Mesh Component’s World Location (btw, you should do it before the timeline, otherwise it will add up with previous transformations) and set it’s World Location with offset from timeline?

Oh, I noticed you have vector in your timeline. You should only change Z value, but you taking whole vector to the equation. Change it to float and split struct of Wall’s location. Feed X and Y straight to the Set Wolrd Location Node, do equation on Z and connect it too.

Yes, because you setting their world X and Y from the Timeline.
Parent three of them is easiest, assuming you don’t want to animate them at different speed (as I thought).
This is how I would do that:

Hi thank you for your advice, unfortunately I have tried that and that doesn’t work.

The best way is a parent and three children. I rotate the parent but the children only rotate in the same place.

I have found from trying this that the static mesh would automatically jump up higher sometimes after touching. Also when I use this for more than 1 static mesh using a sequence one of them disappears.

The problem sounds like you storing wrong location on variable.
Try first to do exactly as on picture then change it part by part to see where the problem occurs. Also try using debug points to see where you store your locations.
at last it would be helpful if you provided screenshot of what you did so whoever trying to help can be sure it’s not simple mistake like wrong node or wrong connection.