I have a prop that moves in a straight line in a fixed amount of time, I want it to stop midway when I use a trigger device.
However, when I recall a Prop.MoveTo or Prop.TeleportTo at its current position, causing a lag.
You can’t stop it smoothly at the exact frame you tell it to.
If you want something smooth you’ll need to call MoveTo() again right ?
I guess you’d need to pick a target position where the prop will be stopping and then Lerp toward it. If you call MoveTo each frame between current position and target position but with the same duration it will naturally slow down with time
Also, to prevent the ‘lag’ you seem to be talking about, just retrieve the correct duration based on the prop speed so that it’s not visible that you called MoveTo again!
Or maybe take a look at AnimationController and easing functions