08-05-2014, 06:58 PM
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.
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.