Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Position in path relative to Z world axis
#1
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!
Reply


Messages In This Thread
Position in path relative to Z world axis - by socoman3 - 02-04-2015, 05:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 2,134 06-07-2025, 09:44 AM
Last Post: _Aka_
  Duplicate Prefab along path rickgplus 1 1,546 01-23-2025, 10:09 AM
Last Post: _Aka_
  Can't set CG Path Controller j95677 4 3,245 10-04-2024, 06:55 PM
Last Post: j95677
  Rasterized Path Range issue proton 7 4,262 04-30-2024, 11:17 AM
Last Post: _Aka_

Forum Jump: