I’ve got a train engine running along a track, which the player can speed up or slow down. The track is a loop made with the iTween visual path editor (i.e. the start and end nodes of the path are in the same location). Regardless of speed or node layout, however, the train always hiccups when it comes to the loop point. There’s always a slight jerk in its facing and a small disruption to its continued movement, regardless of how many nodes I add to smooth out the curve.
Is there some aspect of PutOnPath I’m overlooking? Thank you for your time.
function FixedUpdate(){
iTween.PutOnPath(gameObject,iTweenPath.GetPath(activePath),value);
if (value < 1) {
value += speed;
} else {
value = 0;
}
}