Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Collision along spline
#1
I need objects moving along the spline to be able to collide with things along the spline and stop.  However, the FollowSpline script hard-sets the position on each update rather than using Unity's translation, so objects simply phase through each other as if they weren't there.

Is there an easy way to implement this that I'm simply overlooking?  Any advice would be appreciated.
 
edit: I'm currently adjusting the UpdateAbsolutePrecise function to do translation the old-fashioned way (Translate(newposition-oldposition)), but it seems by doing it this way, certain essential variables like CurrentTF don't get updated.
Reply


Messages In This Thread
Collision along spline - by Keladinus - 08-05-2014, 06:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to get length starting from one spline to connected nth spline Dragon-3623 1 1 11 hours ago
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 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_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_

Forum Jump: