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
  Rasterized Path Range issue proton 7 23 04-30-2024, 11:17 AM
Last Post: _Aka_
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Getting Distance from a World Point zorksox 3 5 04-16-2024, 07:30 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_

Forum Jump: