Hello , I am trying to use Itween to move a train engine/cars combo along a spline to follow as if they were connected. I read the following directions you gave below some time back on the subject, but I am having a bit of a hard time following (due to my lack of experience). Would it be possible to elaborate a bit further on these directions to help me along? Right off the bat I am a bit confused about how to implement iTInterface. Thank you so much in advance and thank you for making this amazing plugin!!
"For right now, you can do all that stuff by using the OnTweenUpdate interface event. OnTweenUpdate is called after all other tweening operations, so you can add transformations in this event and you shouldn’t have any issues.
-Implement iTInterface in a blueprint.
-When you call iTween, make sure you give your tween a unique name and set the blueprint that implements the interface as the “OnTweenUpdateTarget.”
-Go to that target blueprint and add an event called “OnTweenUpdate.”
-From , drag out of the tween name input and do a switch on name. Set one of the outputs to be your tween’s name. This is why I encourage unique names so that whatever you call only reacts to that specific tween.
-Now you can apply extra transformations. In the case of incorrect orientation, you can get the actor’s rotation and invert it then set the rotation to be the inverted one you just calculated. In the case of the trains, you can run 3 tweens all off of one spline then OnTweenUpdate you can set its position to be its current position + the transform direction’d additional position."