Child component was added wrong relative location

Hi, I’m new to Blueprint, can’t figure out this issue.
I have the component hierarchy like this:
image
So what I wanna do is to move each scene component up by 10, then continue to move child of scene component (Say here, “sphere” of “scene sphere”) up by 10. Also, I created a variable “PERCENTAGE” clamped to 0 - 1, which was meant to control the movement.

Here is my Construction Script &Event Graph:



It looks good in viewport:


But wrong when I played the simulation:

The “sphere” static mesh component moves too far from its designated location.

Maybe I messed up with some settings? Please let me know your solution, thanks!

1 Like

It’s because you’re setting relative height, and then adding to that height.

If you want to move them all by 10, and then add some to the sphere, you need two timelines. One for each movement.

Hey, thank you for the reply.
Now I understand how it works.

Thanks a lot!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.