02-04-2015, 05:37 PM
Hello!
I'm trying to achieve a gameObject that follows the path on the X and Y axis, but is linked to the world Z axis position of another object.
The main player have forces moving him on Z, and it is not following any path. He doesn't rotate, just moves on X and Y by position. I need enemies to stay in the path, and take their Z position from the player, so they are in front of the player, or at the same position.
Is this possible? When I try to link them it doesn't work because the path is not straight, and its length is greater than the world z position.
Thanks for the help!
I'm trying to achieve a gameObject that follows the path on the X and Y axis, but is linked to the world Z axis position of another object.
The main player have forces moving him on Z, and it is not following any path. He doesn't rotate, just moves on X and Y by position. I need enemies to stay in the path, and take their Z position from the player, so they are in front of the player, or at the same position.
Is this possible? When I try to link them it doesn't work because the path is not straight, and its length is greater than the world z position.
Thanks for the help!