I am trying to wiggle the blue light as you can see below but its not happening and even if it wiggles its not following the player(white light)
I used this code found in here The link to code
and when i play the game
the blue orb wiggles but is at the center of the world and does not follow player
what i want is to wiggle while following just like in ori and the blind forest
If you want to move the child, make sure that you are changing transform.localPosition not transform.position. transform.localPosition is the position relative to the parent. If you change transform.position, you are changing the world position and so might lose your relative position.
If you use transform.translate, that’s moving relative to itself so that will work as well. If you want to restore the blue dot to its original position afterwards, make sure you remember transform.localPosition and then set it at the end.