07-14-2014, 10:23 AM
The easiest way is to copy&paste SplineWalkerCon.cs into a new script and change the code in doUpdate():
The movement is done either by Spline.MoveByConnection() or Spline.MoveConnection() and the speed is calculated by "Speed*Time.deltaTime". You can take "mTF" there to find the previous or next ControlPoint and change the speed input according to that. Should be pretty selfexplanatatory.
Feel free to ask if you need further assistance,
Jake
The movement is done either by Spline.MoveByConnection() or Spline.MoveConnection() and the speed is calculated by "Speed*Time.deltaTime". You can take "mTF" there to find the previous or next ControlPoint and change the speed input according to that. Should be pretty selfexplanatatory.
Feel free to ask if you need further assistance,
Jake