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
  Spline Spots from 2 samples. BitBlit 8 891 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,276 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 931 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 5,019 07-29-2025, 09:15 PM
Last Post: _Aka_

Forum Jump: