06-07-2017, 07:07 PM
Quite simple, two ideas come to mind, both assuming you know spline distance between the two objects (GetNearestPointTF or reading controller position):
1.) Check Distance between the two and slightly raise/lower controller's speed to reach close to the wanted distance. Could be too inaccurate for some scenarios.
2.) Like above, check distances, then set the 2nd object's position to match the wanted distance. Let controller's speed fixed at 0.
Both ideas can easily be done with a custom controller and one overriden method (e.g. UserAfterUpdate or any method called each frame).
1.) Check Distance between the two and slightly raise/lower controller's speed to reach close to the wanted distance. Could be too inaccurate for some scenarios.
2.) Like above, check distances, then set the 2nd object's position to match the wanted distance. Let controller's speed fixed at 0.
Both ideas can easily be done with a custom controller and one overriden method (e.g. UserAfterUpdate or any method called each frame).