Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Position in path relative to Z world axis
#3
Yeah, it's a bit difficult to explain with words... I attached a screenshot of the Unity editor. The player is the one with the axis shown. The capsule object is the "enemy" following the spline.
The track (squares) follows an almost straight structure along the Z axis. The player has his movements splitted between a 2D space (X and Y) and the 3rd dimension is Z, used to accelerate and decelerate (somewhat like and old racing game that did only have left and and right, and accelerate or brake).
The camera is just behind the player.

The enemies that follow the path should be related to the Z position of the player.

I hope this makes sense!! Big Grin

Thanks Jake
 


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread

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,522 06-07-2025, 09:44 AM
Last Post: _Aka_
  Duplicate Prefab along path rickgplus 1 1,922 01-23-2025, 10:09 AM
Last Post: _Aka_
  Can't set CG Path Controller j95677 4 4,059 10-04-2024, 06:55 PM
Last Post: j95677
  Rasterized Path Range issue proton 7 5,260 04-30-2024, 11:17 AM
Last Post: _Aka_

Forum Jump: